Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b14bec89 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by David S. Miller
Browse files

liquidio: remove unnecessary NULL check before kfree in delete_glists



NULL check before freeing functions like kfree is not needed.

This issue was detected with the help of Coccinelle.

Signed-off-by: default avatarGustavo A. R. Silva <garsilva@embeddedor.com>
Acked-by: default avatarFelix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ac79a512
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -435,7 +435,6 @@ static void delete_glists(struct lio *lio)
		do {
			g = (struct octnic_gather *)
			    list_delete_head(&lio->glist[i]);
			if (g)
			kfree(g);
		} while (g);