From: Rui Miguel Silva Date: Thu, 2 Jul 2015 18:11:34 +0000 (+0100) Subject: greybus: sdio: pass only data pointer to tranfer funtion X-Git-Tag: v4.9-rc1~119^2~378^2~21^2~1408 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=882edf59fcfa400547bdb509e67f2266471f838d;p=linux.git greybus: sdio: pass only data pointer to tranfer funtion No need to pass the all request to the transfer related funtctions. Signed-off-by: Rui Miguel Silva Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/sdio.c b/drivers/staging/greybus/sdio.c index 8dd833eb9301..8e7b7ba341dc 100644 --- a/drivers/staging/greybus/sdio.c +++ b/drivers/staging/greybus/sdio.c @@ -285,9 +285,8 @@ static int _gb_sdio_recv(struct gb_sdio_host *host, struct mmc_data *data, return 0; } -static int gb_sdio_transfer(struct gb_sdio_host *host, struct mmc_request *mrq) +static int gb_sdio_transfer(struct gb_sdio_host *host, struct mmc_data *data) { - struct mmc_data *data = mrq->data; size_t left, len; off_t skip = 0; int ret = 0; @@ -438,7 +437,7 @@ static void gb_sdio_mrq_work(struct work_struct *work) goto done; if (mrq->data) { - ret = gb_sdio_transfer(host, host->mrq); + ret = gb_sdio_transfer(host, host->mrq->data); if (ret < 0) goto done; }