Date: Sat, 16 Aug 2014 23:20:43 +0400 From: "Alexander V. Chernikov" <melifaro@yandex-team.ru> To: jfv@FreeBSD.org Cc: FreeBSD Net <net@freebsd.org> Subject: ixgbe i2c interface Message-ID: <53EFAF0B.6060301@yandex-team.ru>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Hello Jack!
Can you please commit (or let me commit) the following one-liner?
[-- Attachment #2 --]
Index: sys/dev/ixgbe/ixgbe.c
===================================================================
--- sys/dev/ixgbe/ixgbe.c (revision 270040)
+++ sys/dev/ixgbe/ixgbe.c (working copy)
@@ -1055,7 +1055,7 @@ ixgbe_ioctl(struct ifnet * ifp, u_long command, ca
error = copyin(ifr->ifr_data, &i2c, sizeof(i2c));
if (error)
break;
- if ((i2c.dev_addr != 0xA0) || (i2c.dev_addr != 0xA2)){
+ if ((i2c.dev_addr != 0xA0) && (i2c.dev_addr != 0xA2)){
error = EINVAL;
break;
}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53EFAF0B.6060301>
