Skip to content

Commit

Permalink
ipmi: remove redundant initialization of bmc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Colin Ian King authored and Corey Minyard committed Sep 28, 2017
1 parent daf9a4e commit b79bba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/ipmi/ipmi_msghandler.c
Original file line number Diff line number Diff line change
@@ -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;

/*

0 comments on commit b79bba1

Please sign in to comment.