diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2011-03-13 00:29:02 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-03-14 14:57:33 -0400 |
commit | 43c04d42c3c5a23e2aff330d4d361c733118df80 (patch) | |
tree | 7b4927682833b53e5247cdfee7ffdd0aa98723d0 /drivers | |
parent | 306be9e1c167dcd7d6635bd434ee8e63ab22a5d6 (diff) |
staging: line6: Remove NULL check before kfree
This patch was generated by the following semantic patch:
// <smpl>
@@ expression E; @@
- if (E != NULL) { kfree(E); }
+ kfree(E);
@@ expression E; @@
- if (E != NULL) { kfree(E); E = NULL; }
+ kfree(E);
+ E = NULL;
// </smpl>
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/line6/pcm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/line6/pcm.c b/drivers/staging/line6/pcm.c index b9c55f9eb50..9d4c8a606ee 100644 --- a/drivers/staging/line6/pcm.c +++ b/drivers/staging/line6/pcm.c | |||
@@ -189,8 +189,7 @@ int line6_pcm_stop(struct snd_line6_pcm *line6pcm, int channels) | |||
189 | line6pcm->buffer_out = NULL; | 189 | line6pcm->buffer_out = NULL; |
190 | } | 190 | } |
191 | #if LINE6_BACKUP_MONITOR_SIGNAL | 191 | #if LINE6_BACKUP_MONITOR_SIGNAL |
192 | if (line6pcm->prev_fbuf != NULL) | 192 | kfree(line6pcm->prev_fbuf); |
193 | kfree(line6pcm->prev_fbuf); | ||
194 | #endif | 193 | #endif |
195 | 194 | ||
196 | return 0; | 195 | return 0; |