Re: [PATCH v2 1/3] staging: greybus: sdio: fix cmd_flags check for none response

2016-10-03 Thread Viresh Kumar
On Fri, Sep 30, 2016 at 11:54 PM, Rui Miguel Silva wrote: > When checking for command flags field if response is not available we > really need to compare it with the right define and not bitwise AND it. > > smatch warn: > drivers/staging/greybus/sdio.c:481

[PATCH v2 1/3] staging: greybus: sdio: fix cmd_flags check for none response

2016-09-30 Thread Rui Miguel Silva
When checking for command flags field if response is not available we really need to compare it with the right define and not bitwise AND it. smatch warn: drivers/staging/greybus/sdio.c:481 gb_sdio_command() warn: bitwise AND condition is false here Reported-by: Dan Carpenter