Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
23581e23
Commit
23581e23
authored
Jul 15, 2004
by
Alexander Viro
Committed by
Linus Torvalds
Jul 15, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] NULL noise removal in sound/usb/*
parent
47facfb8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
sound/usb/usbaudio.c
sound/usb/usbaudio.c
+3
-3
sound/usb/usbmixer.c
sound/usb/usbmixer.c
+2
-2
No files found.
sound/usb/usbaudio.c
View file @
23581e23
...
@@ -898,11 +898,11 @@ static void release_urb_ctx(snd_urb_ctx_t *u)
...
@@ -898,11 +898,11 @@ static void release_urb_ctx(snd_urb_ctx_t *u)
{
{
if
(
u
->
urb
)
{
if
(
u
->
urb
)
{
usb_free_urb
(
u
->
urb
);
usb_free_urb
(
u
->
urb
);
u
->
urb
=
0
;
u
->
urb
=
NULL
;
}
}
if
(
u
->
buf
)
{
if
(
u
->
buf
)
{
kfree
(
u
->
buf
);
kfree
(
u
->
buf
);
u
->
buf
=
0
;
u
->
buf
=
NULL
;
}
}
}
}
...
@@ -923,7 +923,7 @@ static void release_substream_urbs(snd_usb_substream_t *subs, int force)
...
@@ -923,7 +923,7 @@ static void release_substream_urbs(snd_usb_substream_t *subs, int force)
release_urb_ctx
(
&
subs
->
syncurb
[
i
]);
release_urb_ctx
(
&
subs
->
syncurb
[
i
]);
if
(
subs
->
tmpbuf
)
{
if
(
subs
->
tmpbuf
)
{
kfree
(
subs
->
tmpbuf
);
kfree
(
subs
->
tmpbuf
);
subs
->
tmpbuf
=
0
;
subs
->
tmpbuf
=
NULL
;
}
}
subs
->
nurbs
=
0
;
subs
->
nurbs
=
0
;
}
}
...
...
sound/usb/usbmixer.c
View file @
23581e23
...
@@ -574,7 +574,7 @@ static void usb_mixer_elem_free(snd_kcontrol_t *kctl)
...
@@ -574,7 +574,7 @@ static void usb_mixer_elem_free(snd_kcontrol_t *kctl)
{
{
if
(
kctl
->
private_data
)
{
if
(
kctl
->
private_data
)
{
snd_magic_kfree
((
void
*
)
kctl
->
private_data
);
snd_magic_kfree
((
void
*
)
kctl
->
private_data
);
kctl
->
private_data
=
0
;
kctl
->
private_data
=
NULL
;
}
}
}
}
...
@@ -1318,7 +1318,7 @@ static void usb_mixer_selector_elem_free(snd_kcontrol_t *kctl)
...
@@ -1318,7 +1318,7 @@ static void usb_mixer_selector_elem_free(snd_kcontrol_t *kctl)
usb_mixer_elem_info_t
*
cval
=
snd_magic_cast
(
usb_mixer_elem_info_t
,
kctl
->
private_data
,);
usb_mixer_elem_info_t
*
cval
=
snd_magic_cast
(
usb_mixer_elem_info_t
,
kctl
->
private_data
,);
num_ins
=
cval
->
max
;
num_ins
=
cval
->
max
;
snd_magic_kfree
(
cval
);
snd_magic_kfree
(
cval
);
kctl
->
private_data
=
0
;
kctl
->
private_data
=
NULL
;
}
}
if
(
kctl
->
private_value
)
{
if
(
kctl
->
private_value
)
{
char
**
itemlist
=
(
char
**
)
kctl
->
private_value
;
char
**
itemlist
=
(
char
**
)
kctl
->
private_value
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment