OSDN Git Service

drm/gma500: remove set but not used variable 'error'
authorzhengbin <zhengbin13@huawei.com>
Fri, 15 Nov 2019 14:27:06 +0000 (22:27 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 15 Nov 2019 15:50:24 +0000 (16:50 +0100)
commita5eb29a9d2fc03d07af7d02f6c2e7ae1e6d985f9
treec100bf74ca9128fc756c1de143e7c9af26eb7a5b
parentdfa703b6f91818fa9f652c00e3589c104c518930
drm/gma500: remove set but not used variable 'error'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/gpu/drm/gma500/psb_irq.c: In function psb_sgx_interrupt:
drivers/gpu/drm/gma500/psb_irq.c:210:6: warning: variable error set but not used [-Wunused-but-set-variable]

It is introduced by commit 64a4aff283ac ("drm/gma500:
Add support for SGX interrupts"), but never used, so remove it.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/1573828027-122323-3-git-send-email-zhengbin13@huawei.com
drivers/gpu/drm/gma500/psb_irq.c