Browse Source

be2net: missing variable initialization

Signed-off-by: Antonio Alecrim Jr <antonio.alecrim@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Antonio Alecrim Jr 12 years ago
parent
commit
922bbe88c1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/net/ethernet/emulex/benet/be_main.c

+ 1 - 1
drivers/net/ethernet/emulex/benet/be_main.c

@@ -2802,7 +2802,7 @@ static int be_vfs_if_create(struct be_adapter *adapter)
 	struct be_resources res = {0};
 	struct be_vf_cfg *vf_cfg;
 	u32 cap_flags, en_flags, vf;
-	int status;
+	int status = 0;
 
 	cap_flags = BE_IF_FLAGS_UNTAGGED | BE_IF_FLAGS_BROADCAST |
 		    BE_IF_FLAGS_MULTICAST;