summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2020-04-28 19:29:17 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2020-05-10 10:41:30 +0100
commitb885d0fa6790b8b2c8502dc93fed27ce85e68922 (patch)
treeb8697737ec587d19c2832858c088600adb9dab1e /net/lapb/lapb_timer.c
parent02cdab2a8d55c85967a4be4a084efa9641c56066 (diff)
iio: light: cm32181: Clean up the probe function a bit
3 small cleanups to cm32181_probe(): 1. Do not log an error when we fail to allocate memory (as a general rule drivers do not log errors for this as the kernel will already have complained loudly that it could not alloc the mem). 2. Remove the i2c_set_clientdata() call, we never use i2c_get_clientdata() or dev_get_drvdata() anywhere. 3. Add a dev helper variable and use it in various places instead of &client->dev. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions