Skip to content

Commit 4239749

Browse files
rtc: v3020: remove set but unused variable
Fix the following warning: drivers/rtc/rtc-v3020.c: In function ‘rtc_probe’: drivers/rtc/rtc-v3020.c:287:6: warning: variable ‘temp’ set but not used [-Wunused-but-set-variable] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent 8321c2e commit 4239749

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/rtc/rtc-v3020.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ static int rtc_probe(struct platform_device *pdev)
284284
struct v3020 *chip;
285285
int retval = -EBUSY;
286286
int i;
287-
int temp;
288287

289288
chip = devm_kzalloc(&pdev->dev, sizeof(*chip), GFP_KERNEL);
290289
if (!chip)
@@ -302,7 +301,7 @@ static int rtc_probe(struct platform_device *pdev)
302301
/* Make sure the v3020 expects a communication cycle
303302
* by reading 8 times */
304303
for (i = 0; i < 8; i++)
305-
temp = chip->ops->read_bit(chip);
304+
chip->ops->read_bit(chip);
306305

307306
/* Test chip by doing a write/read sequence
308307
* to the chip ram */

0 commit comments

Comments
 (0)