summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/sdio.c
diff options
context:
space:
mode:
authorRui Miguel Silva <rui.silva@linaro.org>2015-10-15 23:56:52 +0100
committerGreg Kroah-Hartman <gregkh@google.com>2015-10-19 12:06:44 -0700
commitb6789ee55b99fbc26aa16e4f485397e86498bf51 (patch)
treef04ba6ca450f0b791a7bfe226b82f227ad84de45 /drivers/staging/greybus/sdio.c
parent10ed1938767ec90a264b73b337ec17a0a674847a (diff)
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>
Diffstat (limited to 'drivers/staging/greybus/sdio.c')
-rw-r--r--drivers/staging/greybus/sdio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/greybus/sdio.c b/drivers/staging/greybus/sdio.c
index 201cfe534459..beb35747a4f8 100644
--- a/drivers/staging/greybus/sdio.c
+++ b/drivers/staging/greybus/sdio.c
@@ -379,7 +379,7 @@ static int gb_sdio_command(struct gb_sdio_host *host, struct mmc_command *cmd)
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 @@ static void gb_sdio_mrq_work(struct work_struct *work)
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;
}