sound/oss: Remove unnecessary casts of void ptr
The [vk][cmz]alloc(_node) family of functions return void pointers which it's completely unnecessary/pointless to cast to other pointer types since that happens implicitly. This patch removes such casts from sound/oss/ Signed-off-by: Jesper Juhl <jj@chaosbits.net> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
committed by
Takashi Iwai
parent
f724bd240a
commit
ea7dd25125
@ -1646,13 +1646,13 @@ void sequencer_init(void)
|
||||
{
|
||||
if (sequencer_ok)
|
||||
return;
|
||||
queue = (unsigned char *)vmalloc(SEQ_MAX_QUEUE * EV_SZ);
|
||||
queue = vmalloc(SEQ_MAX_QUEUE * EV_SZ);
|
||||
if (queue == NULL)
|
||||
{
|
||||
printk(KERN_ERR "sequencer: Can't allocate memory for sequencer output queue\n");
|
||||
return;
|
||||
}
|
||||
iqueue = (unsigned char *)vmalloc(SEQ_MAX_QUEUE * IEV_SZ);
|
||||
iqueue = vmalloc(SEQ_MAX_QUEUE * IEV_SZ);
|
||||
if (iqueue == NULL)
|
||||
{
|
||||
printk(KERN_ERR "sequencer: Can't allocate memory for sequencer input queue\n");
|
||||
|
Reference in New Issue
Block a user