DragonFly commits List (threaded) for 2013-02
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
git: asr(4): Remove a case that is not a member of the enum being tested.
commit 3fd202cb50f05840c73d61ad64406538f3f734a7
Author: Sascha Wildner <saw@online.de>
Date: Thu Feb 21 20:14:23 2013 +0100
asr(4): Remove a case that is not a member of the enum being tested.
Apparently xpt_opcode can wind up being REPORT_LUNS here. gcc47 warns
about it because REPORT_LUNS is not an enum xpt_opcode member.
FreeBSD just casted this away. Instead of doing that, remove it and
let the default case handle it (which has the same code as XPT_ABORT).
While here, fix a typo in a comment.
Summary of changes:
sys/dev/raid/asr/asr.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3fd202cb50f05840c73d61ad64406538f3f734a7
--
DragonFly BSD source repository
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]