diff options
author | Nishka Dasgupta <nishka.dasgupta@yahoo.com> | 2019-03-20 00:59:11 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-03-20 07:50:34 +0100 |
commit | df08e38510f84b59ad1def582e913c26d5a3cddc (patch) | |
tree | 1292ad3965d517cf5a0a1790f1fdec290464cbd9 /drivers | |
parent | 180a41bfbfe04af93a1e2945bf723d161820cf4f (diff) | |
download | linux-df08e38510f84b59ad1def582e913c26d5a3cddc.tar.bz2 |
staging: gasket: Remove return variable
Remove return variable and return the return value directly. Issue
suggested by ret.cocci.
Signed-off-by: Nishka Dasgupta <nishka.dasgupta@yahoo.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/gasket/apex_driver.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/gasket/apex_driver.c b/drivers/staging/gasket/apex_driver.c index 0578bf1ba1e9..a5da9bbd8396 100644 --- a/drivers/staging/gasket/apex_driver.c +++ b/drivers/staging/gasket/apex_driver.c @@ -439,9 +439,7 @@ static int apex_reset(struct gasket_dev *gasket_dev) if (ret) return ret; } - ret = apex_quit_reset(gasket_dev); - - return ret; + return apex_quit_reset(gasket_dev); } /* |