]> git.karo-electronics.de Git - linux-beck.git/commit
staging: greybus: sdio: fix cmd_flags check for none response
authorRui Miguel Silva <rmfrfs@gmail.com>
Fri, 30 Sep 2016 18:24:31 +0000 (19:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 2 Oct 2016 13:49:25 +0000 (15:49 +0200)
commit85a42dc8676c2ea15fb44715eef85a7a419254a0
treeff3dd3efa8be0507e2e81cf1351730e66e387ad0
parent71bad7f086419dc674244b91ca35a12bfa4cb597
staging: greybus: sdio: fix cmd_flags check for none response

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 <dan.carpenter@oracle.com>
Signed-off-by: Rui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/sdio.c