git: asr(4): Remove a case that is not a member of the enum being tested.

Sascha Wildner swildner at crater.dragonflybsd.org
Thu Feb 21 11:25:38 PST 2013


commit 3fd202cb50f05840c73d61ad64406538f3f734a7
Author: Sascha Wildner <saw at 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


More information about the Commits mailing list