summaryrefslogtreecommitdiff
path: root/drivers/hwmon/ltc2947-core.c
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2020-02-19 08:39:45 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-03-06 08:35:38 +0100
commit101f227c24038aed5bd821414fdd9e9a3509484a (patch)
tree0628321beaf2d5700bb1782525ac914d7b936a50 /drivers/hwmon/ltc2947-core.c
parentba08cf452f3493e96793c9fec4ebb45e7101a0c0 (diff)
vt: selection, remove 2 local variables from set_selection_kernel
multiplier and mode are not actually needed: * multiplier is used only in kmalloc_array, so use "use_unicode ? 4 : 1" directly * mode is used only to assign a bool in this manner: if (cond) x = true; else x = false; So do "x = cond" directly. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Link: https://lore.kernel.org/r/20200219073951.16151-3-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hwmon/ltc2947-core.c')
0 files changed, 0 insertions, 0 deletions