Commit 92c4bad7 authored by Bart Massey's avatar Bart Massey Committed by Greg Kroah-Hartman
Browse files

Staging: comedi: ni_labpc_cs: removed null check from kfree



Signed-off-by: default avatarBart Massey <bart@cs.pdx.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 96233181
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -272,8 +272,7 @@ static void labpc_cs_detach(struct pcmcia_device *link)
		labpc_release(link);
	}

	/* This points to the parent local_info_t struct */
	if (link->priv)
	/* This points to the parent local_info_t struct (may be null) */
	kfree(link->priv);

}				/* labpc_cs_detach */