Skip to content

Commit

Permalink
p54: fix "‘ret’ may be used uninitialized" warning
Browse files Browse the repository at this point in the history
drivers/net/wireless/p54/p54common.c: In function ‘p54_config’:
drivers/net/wireless/p54/p54common.c:1853: warning: ‘ret’ may be used uninitialized in this function

Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
John W. Linville committed Jan 13, 2009
1 parent 25a4cce commit 26d1597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/p54/p54common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1850,7 +1850,7 @@ static void p54_remove_interface(struct ieee80211_hw *dev,

static int p54_config(struct ieee80211_hw *dev, u32 changed)
{
int ret;
int ret = 0;
struct p54_common *priv = dev->priv;
struct ieee80211_conf *conf = &dev->conf;

Expand Down

0 comments on commit 26d1597

Please sign in to comment.