diff options
author | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2004-06-05 20:23:01 +0000 |
---|---|---|
committer | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2004-06-05 20:23:01 +0000 |
commit | 76e450ab001ec318238b377d301ff9aecdb211f8 (patch) | |
tree | ceeafbcf8d18a85802a5ed016c663f42e658a6be | |
parent | c4f818539a535a13e53548c0b66e0886a42e4d2c (diff) |
Clean up style in ioctl.
ok deraadt@
-rw-r--r-- | sys/dev/pcmcia/if_ray.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/dev/pcmcia/if_ray.c b/sys/dev/pcmcia/if_ray.c index 95294044758..4a91f5c7a36 100644 --- a/sys/dev/pcmcia/if_ray.c +++ b/sys/dev/pcmcia/if_ray.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ray.c,v 1.23 2004/05/12 06:35:11 tedu Exp $ */ +/* $OpenBSD: if_ray.c,v 1.24 2004/06/05 20:23:00 mcbride Exp $ */ /* $NetBSD: if_ray.c,v 1.21 2000/07/05 02:35:54 onoe Exp $ */ /* @@ -1007,15 +1007,16 @@ ray_ioctl(ifp, cmd, data) ray_disable(sc); break; case SIOCADDMULTI: - RAY_DPRINTF(("%s: ioctl: cmd SIOCADDMULTI\n", ifp->if_xname)); case SIOCDELMULTI: - if (cmd == SIOCDELMULTI) - RAY_DPRINTF(("%s: ioctl: cmd SIOCDELMULTI\n", + if (cmd == SIOCADDMULTI) { + RAY_DPRINTF(("%s: ioctl: cmd SIOCADDMULTI\n", ifp->if_xname)); - if (cmd == SIOCADDMULTI) error = ether_addmulti(ifr, &sc->sc_ec); - else + } else { + RAY_DPRINTF(("%s: ioctl: cmd SIOCDELMULTI\n", + ifp->if_xname)); error = ether_delmulti(ifr, &sc->sc_ec); + } if (error == ENETRESET) { error = 0; ray_update_mcast(sc); |