aboutsummaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2012-03-23 15:02:07 -0700
committerLinus Torvalds <[email protected]>2012-03-23 16:58:34 -0700
commit920c4f4c3651855f888ec708ecc656ba10dd8f1d (patch)
tree2c8f540641caba6b9b95b337d06cd3b9e644f603 /scripts/objdiff
parent3a2fd4a14112452eb5c1a079ac8b3f4842762afe (diff)
drivers/leds/leds-tca6507.c: cleanup error handling in tca6507_probe()
Just a small tidy-up. 1) There is a NULL dereference if the tca allocation fails. 2) The call to cancel_work_sync() isn't needed because we haven't scheduled any work. 3) The call to i2c_set_clientdata() isn't needed because the core handles that automatically if probe() fails. 4) I added some curly braces for style reasons. Signed-off-by: Dan Carpenter <[email protected]> Cc: Richard Purdie <[email protected]> Acked-by: NeilBrown <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions