Skip to content

Commit

Permalink
Staging: comedi: ni_labpc_cs: removed null check from kfree
Browse files Browse the repository at this point in the history
Signed-off-by: Bart Massey <bart@cs.pdx.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Bart Massey authored and Greg Kroah-Hartman committed Dec 11, 2009
1 parent 9623318 commit 92c4bad
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/staging/comedi/drivers/ni_labpc_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,8 @@ static void labpc_cs_detach(struct pcmcia_device *link)
labpc_release(link);
}

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

} /* labpc_cs_detach */

Expand Down

0 comments on commit 92c4bad

Please sign in to comment.