diff options
author | Amitoj Kaur Chawla <amitoj1606@gmail.com> | 2016-03-19 00:47:41 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-22 22:22:13 -0400 |
commit | 982177677a835c7084f50206769bf58906d87d76 (patch) | |
tree | e73df9ab8c486066bedee99aff08e903eaeae223 /net/switchdev/switchdev.c | |
parent | 3092c34a4ae6129d97c550d5191cf3e31d14b3ff (diff) |
staging: most: hdm-dim2: Remove possible dereference error
Commit 3eced21a5afb ("staging: most: hdm-dim2: Replace request_irq
with devm_request_irq") introduced the following static checker
warning:
drivers/staging/most/hdm-dim2/dim2_hdm.c:841 dim2_probe() error: 'dev->netinfo_task' dereferencing possible ERR_PTR()
Remove the bug introduced by the commit due to change in control flow
by returning PTR_ERR immediately rather than returning at the end of
the function since we do not need to free anything.
Fixes: 3eced21a5afb
Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions