Przeglądaj źródła

rtc: dev: remove rtc->name from debug message

rtc->name is superfluous here because the rtc is already registered at that
point and its name has already been printed.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Alexandre Belloni 8 lat temu
rodzic
commit
9f8606533b
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      drivers/rtc/rtc-dev.c

+ 1 - 1
drivers/rtc/rtc-dev.c

@@ -464,7 +464,7 @@ void rtc_dev_prepare(struct rtc_device *rtc)
 		return;
 
 	if (rtc->id >= RTC_DEV_MAX) {
-		dev_dbg(&rtc->dev, "%s: too many RTC devices\n", rtc->name);
+		dev_dbg(&rtc->dev, "too many RTC devices\n");
 		return;
 	}