aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-plat.c
diff options
context:
space:
mode:
authorAndrey Smirnov <[email protected]>2019-08-12 13:08:51 -0700
committerWim Van Sebroeck <[email protected]>2019-09-17 08:59:05 +0200
commit08188e8dbc7587d58948efca493219515d6a5639 (patch)
treeaeed008b9584eebc5a23c1e47951f13b7ca1135f /drivers/usb/cdns3/cdns3-plat.c
parent5870f4958ccf90f4cdf3911bade77cb72a3bf28c (diff)
watchdog: ziirave_wdt: Check packet length only once
We don't need to check for packet length more than once, so drop the extra check in ziirave_firm_upload(). While at it move the check at the very start of __ziirave_firm_write_pkt(), as to not waste any time preparing a packet we'll never use. 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