[Patch -next] Fix net/3c503.c build break

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Today's Next failed to build on a x86 box with following error.

drivers/net/3c503.c: In function 'el2_open':
drivers/net/3c503.c:406: error: 'reval' undeclared (first use in this function)
drivers/net/3c503.c:406: error: (Each undeclared identifier is reported only once
drivers/net/3c503.c:406: error: for each function it appears in.)

Most probably because of commit ab08999d6029bb2c79c16be5405d63d2bedbdfea
The patch had a typo in it. Below patch fixes the issue for me.

Thanks
-Sachin


Fix a build break because of a typo in drivers/net/3c503.c

Signed-off-by: Sachin Sant <sachinp@xxxxxxxxxx>
---
diff -Naurp a/drivers/net/3c503.c b/drivers/net/3c503.c
--- a/drivers/net/3c503.c	2009-09-04 15:50:06.000000000 +0530
+++ b/drivers/net/3c503.c	2009-09-04 15:50:41.000000000 +0530
@@ -403,7 +403,7 @@ el2_open(struct net_device *dev)
 		    break;
 	    } else {
 		    if (retval != -EBUSY)
-			    return reval;
+			    return retval;
 	    }
 	} while (*++irqp);
 	if (*irqp == 0) {

[Index of Archives]     [Linux Kernel]     [Linux USB Development]     [Yosemite News]     [Linux SCSI]

  Powered by Linux