summaryrefslogtreecommitdiffstats
path: root/drivers/char/ipmi/ipmi_msghandler.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-09-28 14:22:54 +0100
committerCorey Minyard <cminyard@mvista.com>2017-09-28 12:29:44 -0500
commitb79bba15b3f2cf3d7828d45de2d2f2d08fcbb523 (patch)
tree313f3f6b73d44230d55c4248111e2281fba0ecbf /drivers/char/ipmi/ipmi_msghandler.c
parentdaf9a4ebb742e1229d48bdddff8b91f73202d547 (diff)
downloadlinux-b79bba15b3f2cf3d7828d45de2d2f2d08fcbb523.tar.gz
linux-b79bba15b3f2cf3d7828d45de2d2f2d08fcbb523.tar.bz2
linux-b79bba15b3f2cf3d7828d45de2d2f2d08fcbb523.zip
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 <colin.king@canonical.com> Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'drivers/char/ipmi/ipmi_msghandler.c')
-rw-r--r--drivers/char/ipmi/ipmi_msghandler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/ipmi/ipmi_msghandler.c b/drivers/char/ipmi/ipmi_msghandler.c
index c29d46bef6b3..9de189db2cc3 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;
/*