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

Commit fd48f8d3 authored by Michal Schmidt's avatar Michal Schmidt Committed by Jeff Garzik
Browse files

[PATCH] airo: Don't check for NULL before kfree()



It's unnecessary to check for NULL before calling kfree().

Signed-off-by: default avatarMichal Schmidt <mschmidt@redhat.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent aa93c85d
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -2740,8 +2740,6 @@ static int airo_networks_allocate(struct airo_info *ai)

static void airo_networks_free(struct airo_info *ai)
{
	if (!ai->networks)
		return;
	kfree(ai->networks);
	ai->networks = NULL;
}