aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-plat.c
diff options
context:
space:
mode:
authorAndrey Smirnov <[email protected]>2019-08-12 13:08:53 -0700
committerWim Van Sebroeck <[email protected]>2019-09-17 08:59:05 +0200
commite6bd448653d61d17ddf9a663ca84d1f422846907 (patch)
treeec12fa784b5894855c7467c7b8b6ed0ee6b8c2e3 /drivers/usb/cdns3/cdns3-plat.c
parentdc0dd28951f16be9714e90468e14566d186a7388 (diff)
watchdog: ziirave_wdt: Fix incorrect use of ARRAY_SIZE
Both memset() and ziirave_firm_write_block_data() expect length in bytes as an argument, not a number of elements in array. It just happens that in this particular case both values are equal. Modify the code to use sizeof() instead. Signed-off-by: Andrey Smirnov <[email protected]> Cc: Chris Healy <[email protected]> Cc: Guenter Roeck <[email protected]> Cc: Rick Ramstetter <[email protected]> Cc: [email protected] Cc: [email protected] Reviewed-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-plat.c')
0 files changed, 0 insertions, 0 deletions