Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[WATCHDOG] sizeof cleanup

Use sizeof(*) instead of sizeof * (See Codingstyle documentation).

Signed-off-by: Wim Van Sebroeck <wim@iguana.be>

+3 -3
+1 -1
drivers/watchdog/iop_wdt.c
··· 139 139 140 140 switch (cmd) { 141 141 case WDIOC_GETSUPPORT: 142 - if (copy_to_user(argp, &ident, sizeof ident)) 142 + if (copy_to_user(argp, &ident, sizeof(ident))) 143 143 ret = -EFAULT; 144 144 else 145 145 ret = 0;
+1 -1
drivers/watchdog/rm9k_wdt.c
··· 340 340 const char *name, unsigned int type) 341 341 { 342 342 char buf[80]; 343 - if (snprintf(buf, sizeof buf, "%s_0", name) >= sizeof buf) 343 + if (snprintf(buf, sizeof(buf), "%s_0", name) >= sizeof(buf)) 344 344 return NULL; 345 345 return platform_get_resource_byname(pdv, type, buf); 346 346 }
+1 -1
drivers/watchdog/sc1200wdt.c
··· 197 197 198 198 switch (cmd) { 199 199 case WDIOC_GETSUPPORT: 200 - if (copy_to_user(argp, &ident, sizeof ident)) 200 + if (copy_to_user(argp, &ident, sizeof(ident))) 201 201 return -EFAULT; 202 202 return 0; 203 203