aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/lima/lima_devfreq.c
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2020-11-26 07:23:31 +0000
committerWolfram Sang <[email protected]>2020-12-11 14:43:49 +0000
commit4e970a0ada5299d017a4263074f725227c2d2852 (patch)
tree994fe8d6019cfdbd1ab80dd9a116bdeedd04231c /drivers/gpu/drm/lima/lima_devfreq.c
parenti2c: Warn when device removing fails (diff)
downloadkernel-4e970a0ada5299d017a4263074f725227c2d2852.tar.gz
kernel-4e970a0ada5299d017a4263074f725227c2d2852.zip
i2c: remove check that can never be true
A driver remove callback is only called if the device was bound before. So it's sure that both dev and dev->driver are valid and dev is an i2c device. If the check fails something louder than "return 0" might be appropriate because the problem is grave (something like memory corruption), otherwise the check is useless. Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/lima/lima_devfreq.c')
0 files changed, 0 insertions, 0 deletions