diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2019-08-12 23:08:52 +0300 |
---|---|---|
committer | Wim Van Sebroeck <wim@linux-watchdog.org> | 2019-09-17 09:59:05 +0300 |
commit | dc0dd28951f16be9714e90468e14566d186a7388 (patch) | |
tree | e4b6917eea58638d85357d76dbe14b884f1f78ae /drivers/w1 | |
parent | 08188e8dbc7587d58948efca493219515d6a5639 (diff) | |
download | linux-dc0dd28951f16be9714e90468e14566d186a7388.tar.xz |
watchdog: ziirave_wdt: Skip zeros when calculating checksum
Zeros don't contribute anything to checksum value, so we can skip
unused portion of the packet when calculating its checksum.
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-9-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/w1')
0 files changed, 0 insertions, 0 deletions