greybus: sdio: some cleanups in command function
Some cleanups in gb_sdio_command function, ret does not need to be
initialize and mrq is already pointing to request, no need to get it
from host.
Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
diff --git a/drivers/staging/greybus/sdio.c b/drivers/staging/greybus/sdio.c
index 201cfe5..beb3574 100644
--- a/drivers/staging/greybus/sdio.c
+++ b/drivers/staging/greybus/sdio.c
@@ -379,7 +379,7 @@
u8 cmd_flags;
u8 cmd_type;
int i;
- int ret = 0;
+ int ret;
switch (mmc_resp_type(cmd)) {
case MMC_RSP_NONE:
@@ -488,7 +488,7 @@
goto done;
if (mrq->data) {
- ret = gb_sdio_transfer(host, host->mrq->data);
+ ret = gb_sdio_transfer(host, mrq->data);
if (ret < 0)
goto done;
}