git: 875145ffd48e - main - rx8803_settime: remove write only variable bus
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 05 Apr 2022 04:32:20 UTC
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=875145ffd48e1cad1e3aa2ee6c134d45523558b0 commit 875145ffd48e1cad1e3aa2ee6c134d45523558b0 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2022-04-05 01:35:22 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2022-04-05 04:29:38 +0000 rx8803_settime: remove write only variable bus Sponsored by: Netflix --- sys/dev/iicbus/rtc/rx8803.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/dev/iicbus/rtc/rx8803.c b/sys/dev/iicbus/rtc/rx8803.c index cb704a0e10f5..2b8dc3623dd9 100644 --- a/sys/dev/iicbus/rtc/rx8803.c +++ b/sys/dev/iicbus/rtc/rx8803.c @@ -134,12 +134,9 @@ rx8803_settime(device_t dev, struct timespec *ts) { struct rx8803_time data; struct bcd_clocktime bcd; - device_t bus; uint8_t reg; int rc; - bus = device_get_parent(dev); - ts->tv_sec -= utc_offset(); clock_ts_to_bcd(ts, &bcd, false); clock_dbgprint_bcd(dev, CLOCK_DBG_WRITE, &bcd);