Source-Changes-HG archive

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

[src/trunk]: src/sys/net Small cosmetic change.



details:   https://anonhg.NetBSD.org/src/rev/8173b72f73c3
branches:  trunk
changeset: 500789:8173b72f73c3
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Dec 18 19:36:41 2000 +0000

description:
Small cosmetic change.

diffstat:

 sys/net/if_vlan.c |  16 +++++-----------
 1 files changed, 5 insertions(+), 11 deletions(-)

diffs (33 lines):

diff -r f4f4a51054c4 -r 8173b72f73c3 sys/net/if_vlan.c
--- a/sys/net/if_vlan.c Mon Dec 18 19:32:20 2000 +0000
+++ b/sys/net/if_vlan.c Mon Dec 18 19:36:41 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_vlan.c,v 1.25 2000/12/18 19:32:20 thorpej Exp $     */
+/*     $NetBSD: if_vlan.c,v 1.26 2000/12/18 19:36:41 thorpej Exp $     */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -518,19 +518,13 @@
                break;
 
        case SIOCADDMULTI:
-               if (ifv->ifv_p != NULL) {
-                       error = (*ifv->ifv_msw->vmsw_addmulti)(ifv, ifr);
-               } else {
-                       error = EINVAL;
-               }
+               error = (ifv->ifv_p != NULL) ?
+                   (*ifv->ifv_msw->vmsw_addmulti)(ifv, ifr) : EINVAL;
                break;
 
        case SIOCDELMULTI:
-               if (ifv->ifv_p != NULL) {
-                       error = (*ifv->ifv_msw->vmsw_delmulti)(ifv, ifr);
-               } else {
-                       error = EINVAL;
-               }
+               error = (ifv->ifv_p != NULL) ?
+                   (*ifv->ifv_msw->vmsw_delmulti)(ifv, ifr) : EINVAL;
                break;
 
        default:



Home | Main Index | Thread Index | Old Index