diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-06-28 12:10:54 +0800 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2019-08-13 04:40:11 -0700 |
commit | c8a738f4cfaeccce40b171aca6da5fc45433ce60 (patch) | |
tree | ed3544457e40b374b8a0ba154ae03b01c1972692 /drivers/bus | |
parent | bb88b86c1f623e079968c6b8799989019c5f8413 (diff) | |
download | linux-c8a738f4cfaeccce40b171aca6da5fc45433ce60.tar.gz linux-c8a738f4cfaeccce40b171aca6da5fc45433ce60.tar.bz2 linux-c8a738f4cfaeccce40b171aca6da5fc45433ce60.zip |
bus: ti-sysc: remove set but not used variable 'quirks'
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 <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'drivers/bus')
-rw-r--r-- | drivers/bus/ti-sysc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c index ffe62a0002b2..082fb15fa174 100644 --- a/drivers/bus/ti-sysc.c +++ b/drivers/bus/ti-sysc.c @@ -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 || |