Commit 05ef36d4 authored by Andrew Morton's avatar Andrew Morton Committed by Christoph Hellwig

[PATCH] Fix warnings drivers/net/sk98lin/skaddr.c

From: "Mika Kukkonen" <mika@osdl.org>

  CC [M]  drivers/net/sk98lin/skaddr.o
drivers/net/sk98lin/skaddr.c: In function `SkAddrMcUpdate':
drivers/net/sk98lin/skaddr.c:895: warning: `ReturnCode' might be used
uninitialized in this function
drivers/net/sk98lin/skaddr.c: In function `SkAddrPromiscuousChange':
drivers/net/sk98lin/skaddr.c:1427: warning: `ReturnCode' might be used
uninitialized in this function
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
parent ae9b4e16
......@@ -892,7 +892,7 @@ SK_AC *pAC, /* adapter context */
SK_IOC IoC, /* I/O context */
SK_U32 PortNumber) /* Port Number */
{
int ReturnCode;
int ReturnCode = 0;
#if (!defined(SK_SLIM) || defined(DEBUG))
if (PortNumber >= (SK_U32) pAC->GIni.GIMacsFound) {
return (SK_ADDR_ILLEGAL_PORT);
......@@ -1424,7 +1424,7 @@ SK_IOC IoC, /* I/O context */
SK_U32 PortNumber, /* port whose promiscuous mode changes */
int NewPromMode) /* new promiscuous mode */
{
int ReturnCode;
int ReturnCode = 0;
#if (!defined(SK_SLIM) || defined(DEBUG))
if (PortNumber >= (SK_U32) pAC->GIni.GIMacsFound) {
return (SK_ADDR_ILLEGAL_PORT);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment