Repository navigation
Commit 5758960
ALSA: aoa: Remove obsolete cleanup for clientdata
The i2c core will clear the clientdata pointer automatically.
We don't have to set the `data' field to NULL in remove() or
if probe() failed anymore.
Also remove a unneeded NULL checking for kfree.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Reviewed-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>1 parent 89f3325 commit 5758960
1 file changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1067 | 1067 | | |
1068 | 1068 | | |
1069 | 1069 | | |
1070 | | - | |
1071 | 1070 | | |
1072 | 1071 | | |
1073 | 1072 | | |
| |||
1112 | 1111 | | |
1113 | 1112 | | |
1114 | 1113 | | |
1115 | | - | |
1116 | | - | |
| 1114 | + | |
1117 | 1115 | | |
1118 | 1116 | | |
1119 | 1117 | | |
| |||
0 commit comments