projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
drm/i915/selftests: Fix engine reset count storage for multi-tile
[platform/kernel/linux-starfive.git]
/
sound
/
core
/
info_oss.c
diff --git
a/sound/core/info_oss.c
b/sound/core/info_oss.c
index
1ba887c
..
ebc714b
100644
(file)
--- a/
sound/core/info_oss.c
+++ b/
sound/core/info_oss.c
@@
-32,10
+32,8
@@
int snd_oss_info_register(int dev, int num, char *string)
mutex_lock(&strings);
if (string == NULL) {
x = snd_sndstat_strings[num][dev];
- if (x) {
- kfree(x);
- x = NULL;
- }
+ kfree(x);
+ x = NULL;
} else {
x = kstrdup(string, GFP_KERNEL);
if (x == NULL) {