ihex: Share code between ihex_validate_fw() and ihex_next_binrec()
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Fri, 21 Dec 2018 07:28:37 +0000 (23:28 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jan 2019 09:23:17 +0000 (10:23 +0100)
commit8092e79204e7884f4bee3584ecfe6cf4a124d129
treea9916d2924add24668967afc4305ad39eb195b17
parent570d0200123fb4f809aa2f6226e93a458d664d70
ihex: Share code between ihex_validate_fw() and ihex_next_binrec()

Convert both ihex_validate_fw() and ihex_next_binrec() to use a helper
function to calculate next record offest. This way we only have one
place implementing next record offset calculation logic. No functional
change intended.

Cc: Chris Healy <cphealy@gmail.com>
Cc: Kyle McMartin <kyle@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/ihex.h