From: Colin Ian King Date: Thu, 28 Sep 2017 13:22:54 +0000 (+0100) Subject: ipmi: remove redundant initialization of bmc X-Git-Tag: v4.15-rc1~94^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b79bba15b3f2cf3d7828d45de2d2f2d08fcbb523;p=thirdparty%2Fkernel%2Flinux.git ipmi: remove redundant initialization of bmc The pointer bmc is being initialized and this initialized value is never being read, so this is assignment redundant and can be removed. Cleans up clang warning: warning: Value stored to 'bmc' during its initialization is never read Signed-off-by: Colin Ian King Signed-off-by: Corey Minyard --- diff --git a/drivers/char/ipmi/ipmi_msghandler.c b/drivers/char/ipmi/ipmi_msghandler.c index c29d46bef6b30..9de189db2cc3c 100644 --- a/drivers/char/ipmi/ipmi_msghandler.c +++ b/drivers/char/ipmi/ipmi_msghandler.c @@ -2941,7 +2941,7 @@ static int __ipmi_bmc_register(ipmi_smi_t intf, bool guid_set, guid_t *guid, int intf_num) { int rv; - struct bmc_device *bmc = intf->bmc; + struct bmc_device *bmc; struct bmc_device *old_bmc; /*