summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/rm9k_wdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/watchdog/rm9k_wdt.c')
-rw-r--r--drivers/watchdog/rm9k_wdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/rm9k_wdt.c b/drivers/watchdog/rm9k_wdt.c
index 2e444264226..bb66958b943 100644
--- a/drivers/watchdog/rm9k_wdt.c
+++ b/drivers/watchdog/rm9k_wdt.c
@@ -340,7 +340,7 @@ static const struct resource *wdt_gpi_get_resource(struct platform_device *pdv,
const char *name, unsigned int type)
{
char buf[80];
- if (snprintf(buf, sizeof buf, "%s_0", name) >= sizeof buf)
+ if (snprintf(buf, sizeof(buf), "%s_0", name) >= sizeof(buf))
return NULL;
return platform_get_resource_byname(pdv, type, buf);
}