Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/i2c delete unused variable
details: https://anonhg.NetBSD.org/src/rev/8056ab5cdcab
branches: trunk
changeset: 997631:8056ab5cdcab
user: tnn <tnn%NetBSD.org@localhost>
date: Sun Mar 17 01:47:57 2019 +0000
description:
delete unused variable
diffstat:
sys/dev/i2c/ssdfb_i2c.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r 585feba0980a -r 8056ab5cdcab sys/dev/i2c/ssdfb_i2c.c
--- a/sys/dev/i2c/ssdfb_i2c.c Sun Mar 17 01:33:02 2019 +0000
+++ b/sys/dev/i2c/ssdfb_i2c.c Sun Mar 17 01:47:57 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ssdfb_i2c.c,v 1.1 2019/03/17 01:03:47 tnn Exp $ */
+/* $NetBSD: ssdfb_i2c.c,v 1.2 2019/03/17 01:47:57 tnn Exp $ */
/*
* Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ssdfb_i2c.c,v 1.1 2019/03/17 01:03:47 tnn Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ssdfb_i2c.c,v 1.2 2019/03/17 01:47:57 tnn Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -43,7 +43,6 @@
struct ssdfb_softc sc;
i2c_tag_t sc_i2c_tag;
i2c_addr_t sc_i2c_addr;
- bool sc_parent_is_smbus;
};
static int ssdfb_i2c_match(device_t, cfdata_t, void *);
@@ -156,7 +155,7 @@
struct ssdfb_i2c_softc *sc = (struct ssdfb_i2c_softc *)cookie;
int flags = usepoll ? I2C_F_POLL : 0;
uint8_t cb = SSDFB_I2C_CTRL_BYTE_DATA_MASK;
- uint8_t data [] = {0, 0, 0};
+ uint8_t data[] = {0, 0, 0};
uint8_t cmd[2];
int error;
Home |
Main Index |
Thread Index |
Old Index