File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- /* $OpenBSD: if.c,v 1.728 2025/03/02 21:28:31 bluhm Exp $ */
1
+ /* $OpenBSD: if.c,v 1.729 2025/03/19 23:29:49 bluhm Exp $ */
2
2
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
3
3
4
4
/*
@@ -3359,9 +3359,8 @@ ifpromisc(struct ifnet *ifp, int pswitch)
3359
3359
int
3360
3360
ifsetlro (struct ifnet * ifp , int on )
3361
3361
{
3362
- int error = 0 ;
3363
- int s = splnet ();
3364
3362
struct ifreq ifr ;
3363
+ int error , s = splnet ();
3365
3364
3366
3365
NET_ASSERT_LOCKED (); /* for ioctl */
3367
3366
KERNEL_ASSERT_LOCKED (); /* for if_flags */
@@ -3373,6 +3372,7 @@ ifsetlro(struct ifnet *ifp, int on)
3373
3372
error = ((* ifp -> if_ioctl )(ifp , SIOCSIFXFLAGS , (caddr_t )& ifr ));
3374
3373
if (error == 0 )
3375
3374
goto out ;
3375
+ error = 0 ;
3376
3376
3377
3377
if (!ISSET (ifp -> if_capabilities , IFCAP_LRO )) {
3378
3378
error = ENOTSUP ;
You can’t perform that action at this time.
0 commit comments