Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/nick-nhusb]: src/sys/dev/usb Remove useless check
details: https://anonhg.NetBSD.org/src/rev/a3cf4eae75be
branches: nick-nhusb
changeset: 334631:a3cf4eae75be
user: skrll <skrll%NetBSD.org@localhost>
date: Thu Feb 02 07:34:15 2017 +0000
description:
Remove useless check
diffstat:
sys/dev/usb/if_smsc.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diffs (19 lines):
diff -r d3757c8f2d96 -r a3cf4eae75be sys/dev/usb/if_smsc.c
--- a/sys/dev/usb/if_smsc.c Thu Feb 02 07:23:03 2017 +0000
+++ b/sys/dev/usb/if_smsc.c Thu Feb 02 07:34:15 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_smsc.c,v 1.22.2.25 2017/02/02 07:23:03 skrll Exp $ */
+/* $NetBSD: if_smsc.c,v 1.22.2.26 2017/02/02 07:34:15 skrll Exp $ */
/* $OpenBSD: if_smsc.c,v 1.4 2012/09/27 12:38:11 jsg Exp $ */
/* $FreeBSD: src/sys/dev/usb/net/if_smsc.c,v 1.1 2012/08/15 04:03:55 gonzo Exp $ */
@@ -474,9 +474,6 @@
uint32_t val;
int err;
- if (!ifp)
- return EIO;
-
err = smsc_read_reg(sc, SMSC_COE_CTRL, &val);
if (err != 0) {
smsc_warn_printf(sc, "failed to read SMSC_COE_CTRL (err=%d)\n",
Home |
Main Index |
Thread Index |
Old Index