Re: [PATCH 2/6] staging: dgap: fep5.c: removes smatch warning "missing break? reassigning 'ch->pscan_state'"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Sep 23, 2013 at 8:10 PM, Dan Carpenter <dan.carpenter@xxxxxxxxxx> wrote:
> On Tue, Sep 24, 2013 at 03:06:06AM +0300, Dan Carpenter wrote:
>> On Mon, Sep 23, 2013 at 06:47:13PM -0400, Lidza Louina wrote:
>> > This patch removes this smatch warning:
>> > warn: missing break? reassigning 'ch->pscan_state'
>>
>> I would just leave this one as is.
>>
>
> Yes.  Actually, the fix isn't right.  Let's drop this one.
>
> regards,
> dan carpenter
>

The switch statement this code refers to has the
default behavior first then all the different cases. Isn't
it supposed to be the other way around where
the different cases are presented before the default?
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux