git: 99558548c425 - stable/13 - rx8803_settime: remove write only variable bus

From: Warner Losh <imp_at_FreeBSD.org>
Date: Sun, 02 Oct 2022 04:29:32 UTC
The branch stable/13 has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=99558548c425e8c4d1f5791936841b226a83a115

commit 99558548c425e8c4d1f5791936841b226a83a115
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-07-08 17:53:30 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-10-02 04:25:52 +0000

    rx8803_settime: remove write only variable bus
    
    Sponsored by:           Netflix
    
    (cherry picked from commit 875145ffd48e1cad1e3aa2ee6c134d45523558b0)
---
 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);