From 03d8aa18825688a4ca5614e42cc47a08ac0c7c0a Mon Sep 17 00:00:00 2001 From: Zdenek Styblik Date: Thu, 22 Jan 2015 12:53:59 +0100 Subject: [PATCH] ID:355 - Remove defined but unused variable in _set_command_enables() --- lib/ipmi_firewall.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/ipmi_firewall.c b/lib/ipmi_firewall.c index 2803bc0..5ea67ef 100644 --- a/lib/ipmi_firewall.c +++ b/lib/ipmi_firewall.c @@ -512,7 +512,7 @@ _set_command_enables(struct ipmi_intf * intf, { struct ipmi_rs * rsp; struct ipmi_rq req; - unsigned char * d, rqdata[19]; + unsigned char rqdata[19]; unsigned int c; if (!p || !lnfn) { @@ -568,8 +568,6 @@ _set_command_enables(struct ipmi_intf * intf, return -1; } - d = rsp->data; - memset(&req, 0, sizeof(req)); req.msg.netfn = IPMI_NETFN_APP; req.msg.cmd = BMC_SET_COMMAND_ENABLES; @@ -591,7 +589,6 @@ _set_command_enables(struct ipmi_intf * intf, return -1; } - d = rsp->data; return 0; }