]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
drivers: net: fsl-mc: remove useless assignment of variable
authorIoana Ciornei <ioana.ciornei@nxp.com>
Thu, 5 Jan 2023 15:03:15 +0000 (17:03 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 2 Feb 2023 19:44:53 +0000 (14:44 -0500)
The cur_ptr variable is set to the start of the log buffer but then it's
not used. Just remove the assignment altogether.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
drivers/net/fsl-mc/mc.c

index 6b36860187caf407d998797b8c990df1392ec7d8..66fcb48ebd55ad5f9efcbfe058e14d717fa3b116 100644 (file)
@@ -1796,7 +1796,6 @@ static void mc_dump_log(void)
        if (size > bytes_end) {
                print_k_bytes(cur_ptr, &bytes_end);
 
-               cur_ptr = buf;
                size -= bytes_end;
        }