* Re: [PATCH] staging: rts5208: Comparisons should place the constant on the right side of the test [not found] <1473949794-9708-1-git-send-email-sergio.paracuellos@gmail.com> @ 2016-09-15 14:51 ` Greg KH 2016-09-15 17:22 ` Sergio Paracuellos 0 siblings, 1 reply; 4+ messages in thread From: Greg KH @ 2016-09-15 14:51 UTC (permalink / raw) To: Sergio Paracuellos; +Cc: bhumirks, jrickertkc, devel, linux-kernel On Thu, Sep 15, 2016 at 04:29:54PM +0200, Sergio Paracuellos wrote: > Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> > --- > drivers/staging/rts5208/rtsx_card.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/rts5208/rtsx_card.c b/drivers/staging/rts5208/rtsx_card.c > index 9a5cd63..551e3064 100644 > --- a/drivers/staging/rts5208/rtsx_card.c > +++ b/drivers/staging/rts5208/rtsx_card.c > @@ -645,7 +645,7 @@ int switch_ssc_clock(struct rtsx_chip *chip, int clk) > dev_dbg(rtsx_dev(chip), "Switch SSC clock to %dMHz (cur_clk = %d)\n", > clk, chip->cur_clk); > > - if ((clk <= 2) || (N > max_N)) { > + if ((clk <= 2) || (max_N < N)) { Where is the constant? The original code looks fine to me... Also, I can't take patches where there is no changelog text, sorry. greg k-h ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] staging: rts5208: Comparisons should place the constant on the right side of the test 2016-09-15 14:51 ` [PATCH] staging: rts5208: Comparisons should place the constant on the right side of the test Greg KH @ 2016-09-15 17:22 ` Sergio Paracuellos 2016-09-15 17:32 ` Joe Perches 2016-09-16 11:22 ` Dan Carpenter 0 siblings, 2 replies; 4+ messages in thread From: Sergio Paracuellos @ 2016-09-15 17:22 UTC (permalink / raw) To: Greg KH; +Cc: bhumirks, jrickertkc, devel, linux-kernel That's true. It seems that checkpatch script is getting a false positive. Just trying to do checkpatch happy. Sorry for inconvenience. I'll be careful with Changelog stuff from now. Thanks for advice. Cheers, Sergio Paracuellos El 2016年09月15日 a las 16:51, Greg KH escribió: > On Thu, Sep 15, 2016 at 04:29:54PM +0200, Sergio Paracuellos wrote: >> Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> >> --- >> drivers/staging/rts5208/rtsx_card.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/staging/rts5208/rtsx_card.c b/drivers/staging/rts5208/rtsx_card.c >> index 9a5cd63..551e3064 100644 >> --- a/drivers/staging/rts5208/rtsx_card.c >> +++ b/drivers/staging/rts5208/rtsx_card.c >> @@ -645,7 +645,7 @@ int switch_ssc_clock(struct rtsx_chip *chip, int clk) >> dev_dbg(rtsx_dev(chip), "Switch SSC clock to %dMHz (cur_clk = %d)\n", >> clk, chip->cur_clk); >> >> - if ((clk <= 2) || (N > max_N)) { >> + if ((clk <= 2) || (max_N < N)) { > > Where is the constant? > > The original code looks fine to me... > > Also, I can't take patches where there is no changelog text, sorry. > > greg k-h > ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] staging: rts5208: Comparisons should place the constant on the right side of the test 2016-09-15 17:22 ` Sergio Paracuellos @ 2016-09-15 17:32 ` Joe Perches 2016-09-16 11:22 ` Dan Carpenter 1 sibling, 0 replies; 4+ messages in thread From: Joe Perches @ 2016-09-15 17:32 UTC (permalink / raw) To: Sergio Paracuellos, Greg KH; +Cc: bhumirks, jrickertkc, devel, linux-kernel On Thu, 2016-09-15 at 19:22 +0200, Sergio Paracuellos wrote: > That's true. It seems that checkpatch script is getting a false > positive. Just trying to do checkpatch happy. Sorry for inconvenience. Keeping the style consistent instead of taking the simplest path to quiet the checkpatch messages is better. Making N, min_N, max_N all lower case would be better. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] staging: rts5208: Comparisons should place the constant on the right side of the test 2016-09-15 17:22 ` Sergio Paracuellos 2016-09-15 17:32 ` Joe Perches @ 2016-09-16 11:22 ` Dan Carpenter 1 sibling, 0 replies; 4+ messages in thread From: Dan Carpenter @ 2016-09-16 11:22 UTC (permalink / raw) To: Sergio Paracuellos; +Cc: Greg KH, devel, linux-kernel, bhumirks, jrickertkc On Thu, Sep 15, 2016 at 07:22:40PM +0200, Sergio Paracuellos wrote: > That's true. It seems that checkpatch script is getting a false > positive. Just trying to do checkpatch happy. Also the old code was better than new code so leave it alone. regards, dan carpenter ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-09-16 11:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1473949794-9708-1-git-send-email-sergio.paracuellos@gmail.com>
2016-09-15 14:51 ` [PATCH] staging: rts5208: Comparisons should place the constant on the right side of the test Greg KH
2016-09-15 17:22 ` Sergio Paracuellos
2016-09-15 17:32 ` Joe Perches
2016-09-16 11:22 ` Dan Carpenter
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox