staging: goldfish: fix coding style.
Using an else following a break or return can unnecessarily indent code blocks. This patch fixes coding style reported by checkpatch.pl, a part of eudyptula challenge. Signed-off-by: Hoang Tran <hoangtran.gwr@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
9c340ac934
Коммит
92271551b6
|
@ -203,11 +203,11 @@ static int goldfish_audio_open(struct inode *ip, struct file *fp)
|
||||||
AUDIO_INT_WRITE_BUFFER_2_EMPTY);
|
AUDIO_INT_WRITE_BUFFER_2_EMPTY);
|
||||||
AUDIO_WRITE(audio_data, AUDIO_INT_ENABLE, AUDIO_INT_MASK);
|
AUDIO_WRITE(audio_data, AUDIO_INT_ENABLE, AUDIO_INT_MASK);
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
}
|
||||||
|
|
||||||
atomic_dec(&open_count);
|
atomic_dec(&open_count);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
static int goldfish_audio_release(struct inode *ip, struct file *fp)
|
static int goldfish_audio_release(struct inode *ip, struct file *fp)
|
||||||
{
|
{
|
||||||
|
@ -223,7 +223,7 @@ static long goldfish_audio_ioctl(struct file *fp, unsigned int cmd,
|
||||||
/* temporary workaround, until we switch to the ALSA API */
|
/* temporary workaround, until we switch to the ALSA API */
|
||||||
if (cmd == 315)
|
if (cmd == 315)
|
||||||
return -1;
|
return -1;
|
||||||
else
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче