linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/mfd/tps65090.c: duplicated TPS65090_INT_STS tests
@ 2012-07-28 12:34 Fengguang Wu
  2012-07-30  6:01 ` Venu Byravarasu
  0 siblings, 1 reply; 2+ messages in thread
From: Fengguang Wu @ 2012-07-28 12:34 UTC (permalink / raw)
  To: Venu Byravarasu; +Cc: Samuel Ortiz, Axel Lin, kernel-janitors, LKML

Hi Venu,

Is this coccinelle warning a trivial one, or indicates some copy&paste
error? It's introduced by commit 3c33be06 ("mfd: Add support for
TPS65090").

drivers/mfd/tps65090.c:239:5-30: duplicated argument to && or ||

vim +239 drivers/mfd/tps65090.c
   236	
   237	static bool is_volatile_reg(struct device *dev, unsigned int reg)
   238	{
 > 239		if ((reg == TPS65090_INT_STS) || (reg == TPS65090_INT_STS))
   240			return true;
   241		else
   242			return false;

---
0-DAY kernel build testing backend         Open Source Technology Centre
Fengguang Wu <wfg@linux.intel.com>                     Intel Corporation

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-30  6:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-28 12:34 drivers/mfd/tps65090.c: duplicated TPS65090_INT_STS tests Fengguang Wu
2012-07-30  6:01 ` Venu Byravarasu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).