Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1231463 > unrolled thread

[PATCH RESEND 1/4] sound/onyx: remove redundant case entry

Started byYaowei Bai <bywxiaobai@163.com>
First post2015-09-23 16:10 +0200
Last post2015-09-23 16:10 +0200
Articles 2 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH RESEND 1/4] sound/onyx: remove redundant case entry Yaowei Bai <bywxiaobai@163.com> - 2015-09-23 16:10 +0200
    [PATCH RESEND 2/4] sound/i2sbus/core: make format more appropriate Yaowei Bai <bywxiaobai@163.com> - 2015-09-23 16:10 +0200

#1231463 — [PATCH RESEND 1/4] sound/onyx: remove redundant case entry

FromYaowei Bai <bywxiaobai@163.com>
Date2015-09-23 16:10 +0200
Subject[PATCH RESEND 1/4] sound/onyx: remove redundant case entry
Message-ID<qbSUa-6pd-9@gated-at.bofh.it>
Case ti->tag == 0 can be included in the last return,
remove it.

No functional change.

Signed-off-by: Yaowei Bai <bywxiaobai@163.com>
---
 sound/aoa/codecs/onyx.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sound/aoa/codecs/onyx.c b/sound/aoa/codecs/onyx.c
index a04edff..a407e1f 100644
--- a/sound/aoa/codecs/onyx.c
+++ b/sound/aoa/codecs/onyx.c
@@ -683,7 +683,6 @@ static int onyx_usable(struct codec_info_item *cii,
 	mutex_unlock(&onyx->mutex);
 
 	switch (ti->tag) {
-	case 0: return 1;
 	case 1:	return analog_enabled;
 	case 2: return spdif_enabled;
 	}
-- 
1.9.1


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1231464 — [PATCH RESEND 2/4] sound/i2sbus/core: make format more appropriate

FromYaowei Bai <bywxiaobai@163.com>
Date2015-09-23 16:10 +0200
Subject[PATCH RESEND 2/4] sound/i2sbus/core: make format more appropriate
Message-ID<qbSUa-6pd-17@gated-at.bofh.it>
In reply to#1231463
Make 'return' stay in a singe line.

No functional change.

Signed-off-by: Yaowei Bai <bywxiaobai@163.com>
---
 sound/aoa/soundbus/i2sbus/core.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sound/aoa/soundbus/i2sbus/core.c b/sound/aoa/soundbus/i2sbus/core.c
index 1cbf210..6f216c0 100644
--- a/sound/aoa/soundbus/i2sbus/core.c
+++ b/sound/aoa/soundbus/i2sbus/core.c
@@ -62,7 +62,8 @@ static int alloc_dbdma_descriptor_ring(struct i2sbus_dev *i2sdev,
 static void free_dbdma_descriptor_ring(struct i2sbus_dev *i2sdev,
 				       struct dbdma_command_mem *r)
 {
-	if (!r->space) return;
+	if (!r->space)
+		return;
 
 	dma_free_coherent(&macio_get_pci_dev(i2sdev->macio)->dev,
 			    r->size, r->space, r->bus_addr);
-- 
1.9.1


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web