mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
sound: Remove unnecessary casts of private_data
Signed-off-by: Joe Perches <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
This commit is contained in:
parent
831853c87f
commit
9fe856e47e
14 changed files with 41 additions and 42 deletions
|
|
@ -162,7 +162,7 @@ static int __devinit snd_card_ad1816a_probe(int dev, struct pnp_card_link *pcard
|
|||
sizeof(struct snd_card_ad1816a), &card);
|
||||
if (error < 0)
|
||||
return error;
|
||||
acard = (struct snd_card_ad1816a *)card->private_data;
|
||||
acard = card->private_data;
|
||||
|
||||
if ((error = snd_card_ad1816a_pnp(dev, acard, pcard, pid))) {
|
||||
snd_card_free(card);
|
||||
|
|
|
|||
|
|
@ -188,7 +188,7 @@ static int __devinit snd_card_azt2320_probe(int dev,
|
|||
sizeof(struct snd_card_azt2320), &card);
|
||||
if (error < 0)
|
||||
return error;
|
||||
acard = (struct snd_card_azt2320 *)card->private_data;
|
||||
acard = card->private_data;
|
||||
|
||||
if ((error = snd_card_azt2320_pnp(dev, acard, pcard, pid))) {
|
||||
snd_card_free(card);
|
||||
|
|
|
|||
|
|
@ -191,7 +191,7 @@ static int __devinit snd_gusmax_mixer(struct snd_wss *chip)
|
|||
|
||||
static void snd_gusmax_free(struct snd_card *card)
|
||||
{
|
||||
struct snd_gusmax *maxcard = (struct snd_gusmax *)card->private_data;
|
||||
struct snd_gusmax *maxcard = card->private_data;
|
||||
|
||||
if (maxcard == NULL)
|
||||
return;
|
||||
|
|
@ -219,7 +219,7 @@ static int __devinit snd_gusmax_probe(struct device *pdev, unsigned int dev)
|
|||
if (err < 0)
|
||||
return err;
|
||||
card->private_free = snd_gusmax_free;
|
||||
maxcard = (struct snd_gusmax *)card->private_data;
|
||||
maxcard = card->private_data;
|
||||
maxcard->card = card;
|
||||
maxcard->irq = -1;
|
||||
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ static irqreturn_t snd_sb8_interrupt(int irq, void *dev_id)
|
|||
|
||||
static void snd_sb8_free(struct snd_card *card)
|
||||
{
|
||||
struct snd_sb8 *acard = (struct snd_sb8 *)card->private_data;
|
||||
struct snd_sb8 *acard = card->private_data;
|
||||
|
||||
if (acard == NULL)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue