aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Hilliard <thirtythreeforty@gmail.com>2019-03-18 20:20:02 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-03-20 08:23:17 +0100
commitea9420cea39015e554f4ecab9ece7bf5b5bfc760 (patch)
tree2784f3a9918b00aa2630a55ebd506754ad7f6281
parentstaging: fsl-dpaa2: ethsw: Remove return variable (diff)
staging: mt7621-mmc: fix unused variable compiler warning
The compiler complains: drivers/staging/mt7621-mmc/dbg.c: In function ‘msdc_debug_proc_write’: drivers/staging/mt7621-mmc/dbg.c:237:12: warning: unused variable ‘size’ [-Wunused-variable] int mode, size; ^~~~ drivers/staging/mt7621-mmc/dbg.c:237:6: warning: unused variable ‘mode’ [-Wunused-variable] int mode, size; ^~~~ Remove these declarations. Signed-off-by: George Hilliard <thirtythreeforty@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/mt7621-mmc/dbg.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/mt7621-mmc/dbg.c b/drivers/staging/mt7621-mmc/dbg.c
index 6b59ac8b323a..fda3ba38ba37 100644
--- a/drivers/staging/mt7621-mmc/dbg.c
+++ b/drivers/staging/mt7621-mmc/dbg.c
@@ -232,7 +232,6 @@ static ssize_t msdc_debug_proc_write(struct file *file,
int cmd, p1, p2;
int id, zone;
- int mode, size;
if (count == 0)
return -1;