summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/rm9k_wdt.c
diff options
context:
space:
mode:
authorWim Van Sebroeck <wim@iguana.be>2009-09-02 11:10:07 +0200
committerWim Van Sebroeck <wim@iguana.be>2009-09-18 10:39:37 +0200
commite04ab958727a4b314df3e40036d72d9348835d0c (patch)
tree018f72a28458e891eced5c4bca082941394099f8 /drivers/watchdog/rm9k_wdt.c
parent[WATCHDOG] wdt_pci: fix printk and variable type (diff)
downloadlinux-e04ab958727a4b314df3e40036d72d9348835d0c.tar.xz
linux-e04ab958727a4b314df3e40036d72d9348835d0c.zip
[WATCHDOG] sizeof cleanup
Use sizeof(*) instead of sizeof * (See Codingstyle documentation). Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
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 2e4442642262..bb66958b9433 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);
}