From: Benjamin Romer Date: Tue, 23 Feb 2016 15:01:53 +0000 (-0500) Subject: staging: unisys: remove pointless init of rc in chipset_device_create() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7a9749be2f7e8791e845fcf59dbf90ee0612b1dc;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: unisys: remove pointless init of rc in chipset_device_create() The value of rc is set by calling a function, so there's no need to initialize it to -1, or anything at all. Signed-off-by: Benjamin Romer Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/unisys/visorbus/visorbus_main.c b/drivers/staging/unisys/visorbus/visorbus_main.c index 59cef7779a2d..bf04df3c98ff 100644 --- a/drivers/staging/unisys/visorbus/visorbus_main.c +++ b/drivers/staging/unisys/visorbus/visorbus_main.c @@ -1320,7 +1320,7 @@ chipset_bus_destroy(struct visor_device *dev) static void chipset_device_create(struct visor_device *dev_info) { - int rc = -1; + int rc; u32 bus_no = dev_info->chipset_bus_no; u32 dev_no = dev_info->chipset_dev_no;