projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9623318
)
Staging: comedi: ni_labpc_cs: removed null check from kfree
author
Bart Massey
<bart@cs.pdx.edu>
Mon, 21 Sep 2009 18:38:07 +0000
(11:38 -0700)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 11 Dec 2009 20:21:49 +0000
(12:21 -0800)
Signed-off-by: Bart Massey <bart@cs.pdx.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/ni_labpc_cs.c
patch
|
blob
|
history
diff --git
a/drivers/staging/comedi/drivers/ni_labpc_cs.c
b/drivers/staging/comedi/drivers/ni_labpc_cs.c
index
bf6ce02
..
300ecb2
100644
(file)
--- a/
drivers/staging/comedi/drivers/ni_labpc_cs.c
+++ b/
drivers/staging/comedi/drivers/ni_labpc_cs.c
@@
-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 */