Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/i2c No need to consult ia->ia_ncompat before calling...
details: https://anonhg.NetBSD.org/src/rev/1e2183f7e894
branches: trunk
changeset: 959004:1e2183f7e894
user: thorpej <thorpej%NetBSD.org@localhost>
date: Thu Jan 28 14:57:43 2021 +0000
description:
No need to consult ia->ia_ncompat before calling iic_compatible_lookup().
diffstat:
sys/dev/i2c/at24cxx.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 6295de03cdcf -r 1e2183f7e894 sys/dev/i2c/at24cxx.c
--- a/sys/dev/i2c/at24cxx.c Thu Jan 28 14:42:45 2021 +0000
+++ b/sys/dev/i2c/at24cxx.c Thu Jan 28 14:57:43 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: at24cxx.c,v 1.40 2021/01/27 02:29:48 thorpej Exp $ */
+/* $NetBSD: at24cxx.c,v 1.41 2021/01/28 14:57:43 thorpej Exp $ */
/*
* Copyright (c) 2003 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: at24cxx.c,v 1.40 2021/01/27 02:29:48 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: at24cxx.c,v 1.41 2021/01/28 14:57:43 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -180,7 +180,7 @@
if (device_cfdata(self)->cf_flags)
sc->sc_size = (device_cfdata(self)->cf_flags << 7);
- if (sc->sc_size <= 0 && ia->ia_ncompat > 0) {
+ if (sc->sc_size <= 0) {
if ((dce = iic_compatible_lookup(ia, compat_data)) != NULL)
sc->sc_size = dce->value;
}
Home |
Main Index |
Thread Index |
Old Index