aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLarry Finger <Larry.Finger@lwfinger.net>2009-07-19 22:53:14 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-07-24 15:05:27 -0400
commite6a3f551bc236010c4d4d99e626e150e98a4c3e6 (patch)
tree5540ba6e323b739473bd00a3b1945ca378316b0f /drivers
parentf742880c9ca733b6c18bfaa0f5ad2a57f37180c2 (diff)
p54: Eliminate unnecessary initialization
In two places, variables are unnecessilarly initialized to NULL. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/p54/eeprom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/p54/eeprom.c b/drivers/net/wireless/p54/eeprom.c
index 549ef2d19cd7..0efe67deedee 100644
--- a/drivers/net/wireless/p54/eeprom.c
+++ b/drivers/net/wireless/p54/eeprom.c
@@ -529,7 +529,7 @@ static struct p54_cal_database *p54_convert_db(struct pda_custom_wrapper *src,
529int p54_parse_eeprom(struct ieee80211_hw *dev, void *eeprom, int len) 529int p54_parse_eeprom(struct ieee80211_hw *dev, void *eeprom, int len)
530{ 530{
531 struct p54_common *priv = dev->priv; 531 struct p54_common *priv = dev->priv;
532 struct eeprom_pda_wrap *wrap = NULL; 532 struct eeprom_pda_wrap *wrap;
533 struct pda_entry *entry; 533 struct pda_entry *entry;
534 unsigned int data_len, entry_len; 534 unsigned int data_len, entry_len;
535 void *tmp; 535 void *tmp;
@@ -722,7 +722,7 @@ int p54_read_eeprom(struct ieee80211_hw *dev)
722 struct p54_common *priv = dev->priv; 722 struct p54_common *priv = dev->priv;
723 size_t eeprom_size = 0x2020, offset = 0, blocksize, maxblocksize; 723 size_t eeprom_size = 0x2020, offset = 0, blocksize, maxblocksize;
724 int ret = -ENOMEM; 724 int ret = -ENOMEM;
725 void *eeprom = NULL; 725 void *eeprom;
726 726
727 maxblocksize = EEPROM_READBACK_LEN; 727 maxblocksize = EEPROM_READBACK_LEN;
728 if (priv->fw_var >= 0x509) 728 if (priv->fw_var >= 0x509)