diff options
author | Markus Elfring | 2018-02-07 00:39:58 +0100 |
---|---|---|
committer | Linus Torvalds | 2018-02-07 03:32:46 +0100 |
commit | 1acd14bfe9f191dcd80df99f80ec3880a706801e (patch) | |
tree | e74a973cc4b70b31e59af71b6661a6926bdc5a0b /drivers/hwmon/w83791d.c | |
parent | rapidio: delete an unnecessary variable initialisation in three functions (diff) | |
download | kernel-qcow2-linux-1acd14bfe9f191dcd80df99f80ec3880a706801e.tar.gz kernel-qcow2-linux-1acd14bfe9f191dcd80df99f80ec3880a706801e.tar.xz kernel-qcow2-linux-1acd14bfe9f191dcd80df99f80ec3880a706801e.zip |
rapidio: return an error code only as a constant in two functions
* Return an error code without storing it in an intermediate variable.
* Delete the label "out" and local variable "rc" which became unnecessary
with this refactoring.
Link: http://lkml.kernel.org/r/8db441e1-c227-64e7-4747-095da63d7a2e@users.sourceforge.net
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Acked-by: Alexandre Bounine <alexandre.bounine@idt.com>
Cc: Matt Porter <mporter@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/hwmon/w83791d.c')
0 files changed, 0 insertions, 0 deletions