]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
[WATCHDOG] sizeof cleanup
authorWim Van Sebroeck <wim@iguana.be>
Wed, 2 Sep 2009 09:10:07 +0000 (09:10 +0000)
committerWim Van Sebroeck <wim@iguana.be>
Fri, 18 Sep 2009 08:39:37 +0000 (08:39 +0000)
Use sizeof(*) instead of sizeof * (See Codingstyle documentation).

Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/iop_wdt.c
drivers/watchdog/rm9k_wdt.c
drivers/watchdog/sc1200wdt.c

index 0c90596766907cb8acf686c447a280341703832b..aef94789019f3ffb886fb5aadd9f15e8575c982c 100644 (file)
@@ -139,7 +139,7 @@ static long iop_wdt_ioctl(struct file *file,
 
        switch (cmd) {
        case WDIOC_GETSUPPORT:
-               if (copy_to_user(argp, &ident, sizeof ident))
+               if (copy_to_user(argp, &ident, sizeof(ident)))
                        ret = -EFAULT;
                else
                        ret = 0;
index 2e4442642262d4bddfda6803f39fbf5b56e6f970..bb66958b94337e79fc98cd32a643cd992c6661c7 100644 (file)
@@ -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);
 }
index b5e19c1820a2a1083337d419067d91b0ff0445f4..c01daca8405a46ccb53ff54d5c03771e363bf5ad 100644 (file)
@@ -197,7 +197,7 @@ static long sc1200wdt_ioctl(struct file *file, unsigned int cmd,
 
        switch (cmd) {
        case WDIOC_GETSUPPORT:
-               if (copy_to_user(argp, &ident, sizeof ident))
+               if (copy_to_user(argp, &ident, sizeof(ident)))
                        return -EFAULT;
                return 0;