]> Git Repo - linux.git/commitdiff
bus: ti-sysc: remove set but not used variable 'quirks'
authorYueHaibing <[email protected]>
Fri, 28 Jun 2019 04:10:54 +0000 (12:10 +0800)
committerTony Lindgren <[email protected]>
Tue, 13 Aug 2019 11:40:11 +0000 (04:40 -0700)
Fixes gcc '-Wunused-but-set-variable' warning:

drivers/bus/ti-sysc.c: In function sysc_reset:
drivers/bus/ti-sysc.c:1452:50: warning: variable quirks set but not used [-Wunused-but-set-variable]

It is never used since commit e0db94fe87da ("bus: ti-sysc: Make
OCP reset work for sysstatus and sysconfig reset bits")

Reported-by: Hulk Robot <[email protected]>
Signed-off-by: YueHaibing <[email protected]>
Signed-off-by: Tony Lindgren <[email protected]>
drivers/bus/ti-sysc.c

index ffe62a0002b22246f40c8e5fc23d4082ea9eed6f..082fb15fa17440ea2a4172e4a1fe99f482910530 100644 (file)
@@ -1549,12 +1549,11 @@ static int sysc_rstctrl_reset_deassert(struct sysc *ddata, bool reset)
  */
 static int sysc_reset(struct sysc *ddata)
 {
-       int sysc_offset, syss_offset, sysc_val, rstval, quirks, error = 0;
+       int sysc_offset, syss_offset, sysc_val, rstval, error = 0;
        u32 sysc_mask, syss_done;
 
        sysc_offset = ddata->offsets[SYSC_SYSCONFIG];
        syss_offset = ddata->offsets[SYSC_SYSSTATUS];
-       quirks = ddata->cfg.quirks;
 
        if (ddata->legacy_mode || sysc_offset < 0 ||
            ddata->cap->regbits->srst_shift < 0 ||
This page took 0.061889 seconds and 4 git commands to generate.