summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHoang Tran2014-06-16 09:18:37 +0200
committerGreg Kroah-Hartman2014-06-19 00:01:35 +0200
commit92271551b60318da442a5f22c5d9c6b99b98fba4 (patch)
tree992e3526ddf57a205c1a5c66664f5bea8742823e /drivers
parentstaging: comedi: ni_stc.h: add read/write callbacks to struct ni_private (diff)
downloadkernel-qcow2-linux-92271551b60318da442a5f22c5d9c6b99b98fba4.tar.gz
kernel-qcow2-linux-92271551b60318da442a5f22c5d9c6b99b98fba4.tar.xz
kernel-qcow2-linux-92271551b60318da442a5f22c5d9c6b99b98fba4.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/goldfish/goldfish_audio.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/goldfish/goldfish_audio.c b/drivers/staging/goldfish/goldfish_audio.c
index cbd456770af0..a166424b3478 100644
--- a/drivers/staging/goldfish/goldfish_audio.c
+++ b/drivers/staging/goldfish/goldfish_audio.c
@@ -203,10 +203,10 @@ static int goldfish_audio_open(struct inode *ip, struct file *fp)
AUDIO_INT_WRITE_BUFFER_2_EMPTY);
AUDIO_WRITE(audio_data, AUDIO_INT_ENABLE, AUDIO_INT_MASK);
return 0;
- } else {
- atomic_dec(&open_count);
- return -EBUSY;
}
+
+ atomic_dec(&open_count);
+ return -EBUSY;
}
static int goldfish_audio_release(struct inode *ip, struct file *fp)
@@ -223,8 +223,8 @@ static long goldfish_audio_ioctl(struct file *fp, unsigned int cmd,
/* temporary workaround, until we switch to the ALSA API */
if (cmd == 315)
return -1;
- else
- return 0;
+
+ return 0;
}
static irqreturn_t goldfish_audio_interrupt(int irq, void *dev_id)