On Mon, Aug 12, 2019 at 01:08:56PM -0700, Andrey Smirnov wrote: > Ihex_next_binrec() will return NULL if next record's 'len' is zero, so > explicit checks for that in the driver are unnecessary. Drop them. > > Signed-off-by: Andrey Smirnov <andrew.smirnov@xxxxxxxxx> > Cc: Chris Healy <cphealy@xxxxxxxxx> > Cc: Guenter Roeck <linux@xxxxxxxxxxxx> > Cc: Rick Ramstetter <rick@xxxxxxxxxxxxxxx> > Cc: linux-watchdog@xxxxxxxxxxxxxxx > Cc: linux-kernel@xxxxxxxxxxxxxxx Reviewed-by: Guenter Roeck <linux@xxxxxxxxxxxx>