mmc: atmel-mci: remove unused sg_len variable
authorShawn Lin <shawn.lin@rock-chips.com>
Thu, 6 Jul 2017 08:43:45 +0000 (16:43 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 30 Aug 2017 12:01:29 +0000 (14:01 +0200)
commitf98e0d5af9a17e046bf7d0682dec3a78ac1cdacb
tree3f371acdbfd3f1606ee845dcd5349ecf727e27f7
parenta3a56aee5001390bb6073ea9b74e5b0f9a918789
mmc: atmel-mci: remove unused sg_len variable

We got a warning:

drivers/mmc/host/atmel-mci.c:1086:15: warning: variable 'sg_len' set but
not used [-Wunused-but-set-variable]

Ideally we should check to see if sg_len is zero but looking
into the code closely, I didn't find any possible to do that as
atmci_start_request didn't even deploy any error handling for
its host->prepare_data hook. So even we return error value for iflags
like what other host drivers did, for instance, sdhci and dwmmc, it still
need some extra work to improve the code.

Just remove it to silent the warning, although it isn't perfect.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/atmel-mci.c