Commit 23581e23 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] NULL noise removal in sound/usb/*

parent 47facfb8
......@@ -898,11 +898,11 @@ static void release_urb_ctx(snd_urb_ctx_t *u)
{
if (u->urb) {
usb_free_urb(u->urb);
u->urb = 0;
u->urb = NULL;
}
if (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)
release_urb_ctx(&subs->syncurb[i]);
if (subs->tmpbuf) {
kfree(subs->tmpbuf);
subs->tmpbuf = 0;
subs->tmpbuf = NULL;
}
subs->nurbs = 0;
}
......
......@@ -574,7 +574,7 @@ static void usb_mixer_elem_free(snd_kcontrol_t *kctl)
{
if (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)
usb_mixer_elem_info_t *cval = snd_magic_cast(usb_mixer_elem_info_t, kctl->private_data,);
num_ins = cval->max;
snd_magic_kfree(cval);
kctl->private_data = 0;
kctl->private_data = NULL;
}
if (kctl->private_value) {
char **itemlist = (char **)kctl->private_value;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment