summaryrefslogtreecommitdiffstats
path: root/drivers/extcon
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2019-08-12 22:08:53 +0200
committerWim Van Sebroeck <wim@linux-watchdog.org>2019-09-17 08:59:05 +0200
commite6bd448653d61d17ddf9a663ca84d1f422846907 (patch)
treeec12fa784b5894855c7467c7b8b6ed0ee6b8c2e3 /drivers/extcon
parentwatchdog: ziirave_wdt: Skip zeros when calculating checksum (diff)
downloadlinux-e6bd448653d61d17ddf9a663ca84d1f422846907.tar.xz
linux-e6bd448653d61d17ddf9a663ca84d1f422846907.zip
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 <andrew.smirnov@gmail.com> Cc: Chris Healy <cphealy@gmail.com> Cc: Guenter Roeck <linux@roeck-us.net> Cc: Rick Ramstetter <rick@anteaterllc.com> Cc: linux-watchdog@vger.kernel.org Cc: linux-kernel@vger.kernel.org Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20190812200906.31344-10-andrew.smirnov@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Diffstat (limited to 'drivers/extcon')
0 files changed, 0 insertions, 0 deletions