[PATCH] KVM: powerpc: kvmppc_visible_gpa can be boolean

2015-11-15 Thread Yaowei Bai
In another patch kvm_is_visible_gfn is maken return bool due to this function only returns zero or one as its return value, let's also make kvmppc_visible_gpa return bool to keep consistent. No functional change. Signed-off-by: Yaowei Bai --- arch/powerpc/kvm/book3s_pr.c | 4 ++-- 1

[PATCH RESEND 3/4] sound/fabrics/layout: make aoa_fabric_layout_init return directly

2015-09-23 Thread Yaowei Bai
Catching the return value of soundbus_register_driver in aoa_fabric_layout_init is not necessary, let's return it directly. No functional change. Signed-off-by: Yaowei Bai --- sound/aoa/fabrics/layout.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sound/aoa/fa

[PATCH v2 4/4] sound/core/seq: make prioq_match return bool

2015-09-23 Thread Yaowei Bai
This patch makes prioq_match return bool due to this particular function only using either one or zero as its return value. No functional change. Change from v1: fix indentation to line up properly (Johannes Berg) Signed-off-by: Yaowei Bai --- sound/core/seq/seq_prioq.c | 14

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

2015-09-23 Thread Yaowei Bai
Make 'return' stay in a singe line. No functional change. Signed-off-by: Yaowei Bai --- 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 10

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

2015-09-23 Thread Yaowei Bai
Case ti->tag == 0 can be included in the last return, remove it. No functional change. Signed-off-by: Yaowei Bai --- 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/cod

Re: [PATCH 4/4] sound/core/seq: make prioq_match return bool

2015-09-23 Thread Yaowei Bai
On Tue, Sep 22, 2015 at 03:28:12PM +0200, Johannes Berg wrote: > On Tue, 2015-09-22 at 21:22 +0800, Yaowei Bai wrote: > > On Mon, Sep 21, 2015 at 04:11:00PM +0200, Johannes Berg wrote: > > > > > > > -static inline int prioq_match(struct snd_seq_event_cell *cel

Re: [PATCH 4/4] sound/core/seq: make prioq_match return bool

2015-09-22 Thread Yaowei Bai
On Mon, Sep 21, 2015 at 04:11:00PM +0200, Johannes Berg wrote: > > > -static inline int prioq_match(struct snd_seq_event_cell *cell, > > +static inline bool prioq_match(struct snd_seq_event_cell *cell, > > int client, int timestamp) > > I think you should fix up the inde

[PATCH 4/4] sound/core/seq: make prioq_match return bool

2015-09-21 Thread Yaowei Bai
This patch makes prioq_match return bool due to this particular function only using either one or zero as its return value. No functional change. Signed-off-by: Yaowei Bai --- sound/core/seq/seq_prioq.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sound/core

[PATCH 3/4] sound/fabrics/layout: make aoa_fabric_layout_init return directly

2015-09-21 Thread Yaowei Bai
Catching the return value of soundbus_register_driver in aoa_fabric_layout_init is not necessary, let's return it directly. No functional change. Signed-off-by: Yaowei Bai --- sound/aoa/fabrics/layout.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sound/aoa/fa

[PATCH 2/4] sound/i2sbus/core: make format more appropriate

2015-09-21 Thread Yaowei Bai
Make 'return' stay in a singe line. No functional change. Signed-off-by: Yaowei Bai --- 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 10

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

2015-09-21 Thread Yaowei Bai
Case ti->tag == 0 can be included in the last return, remove it. No functional change. Signed-off-by: Yaowei Bai --- 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/cod