aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrzegorz Swirski <grzegorz@swirski.name>2014-09-20 07:09:11 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-24 02:42:39 -0400
commit9b4c8cfaff67086f7c8c2540576a6e9504c8bd88 (patch)
tree45daef52481fc0f0368a0fd13c659be665d3aa42
parentd1d1a9d3a104531e25b7a33d60b627e93700327f (diff)
staging: wlan-ng: remove unused 'result' var
Signed-off-by: Grzegorz Swirski <grzegorz@swirski.name> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/wlan-ng/prism2mib.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/staging/wlan-ng/prism2mib.c b/drivers/staging/wlan-ng/prism2mib.c
index f4717089a80c..0163e062b650 100644
--- a/drivers/staging/wlan-ng/prism2mib.c
+++ b/drivers/staging/wlan-ng/prism2mib.c
@@ -717,8 +717,6 @@ static int prism2mib_priv(struct mibrec *mib,
717{ 717{
718 p80211pstrd_t *pstr = (p80211pstrd_t *) data; 718 p80211pstrd_t *pstr = (p80211pstrd_t *) data;
719 719
720 int result;
721
722 switch (mib->did) { 720 switch (mib->did) {
723 case DIDmib_lnx_lnxConfigTable_lnxRSNAIE:{ 721 case DIDmib_lnx_lnxConfigTable_lnxRSNAIE:{
724 hfa384x_WPAData_t wpa; 722 hfa384x_WPAData_t wpa;
@@ -734,11 +732,10 @@ static int prism2mib_priv(struct mibrec *mib,
734 wpa.datalen = cpu_to_le16(pstr->len); 732 wpa.datalen = cpu_to_le16(pstr->len);
735 memcpy(wpa.data, pstr->data, pstr->len); 733 memcpy(wpa.data, pstr->data, pstr->len);
736 734
737 result = 735 hfa384x_drvr_setconfig(hw,
738 hfa384x_drvr_setconfig(hw, 736 HFA384x_RID_CNFWPADATA,
739 HFA384x_RID_CNFWPADATA, 737 (u8 *) &wpa,
740 (u8 *) &wpa, 738 sizeof(wpa));
741 sizeof(wpa));
742 } 739 }
743 break; 740 break;
744 } 741 }