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>
This commit is contained in:
Rui Miguel Silva 2016-09-30 19:24:31 +01:00 committed by Greg Kroah-Hartman
parent 71bad7f086
commit 85a42dc867
1 changed files with 1 additions and 1 deletions

View File

@ -478,7 +478,7 @@ static int gb_sdio_command(struct gb_sdio_host *host, struct mmc_command *cmd)
goto out; goto out;
/* no response expected */ /* no response expected */
if (cmd_flags & GB_SDIO_RSP_NONE) if (cmd_flags == GB_SDIO_RSP_NONE)
goto out; goto out;
/* long response expected */ /* long response expected */