summaryrefslogtreecommitdiffstats
path: root/drivers/staging/sm750fb
diff options
context:
space:
mode:
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>2015-04-02 23:01:04 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-04-03 11:10:27 +0200
commit59f084070c96f777f977ebd58dc934b9d2a1d95b (patch)
tree43d82c65fe91cd47c6b1361681b9052274a5b208 /drivers/staging/sm750fb
parente261e69e2d16b69eb712123b9e73bac50282b6a7 (diff)
downloadop-kernel-dev-59f084070c96f777f977ebd58dc934b9d2a1d95b.zip
op-kernel-dev-59f084070c96f777f977ebd58dc934b9d2a1d95b.tar.gz
Staging: sm750fb: Remove zero testing pointer typed value
Removes variable comparison with 0. Done using following coccinelle script. @ disable is_zero,isnt_zero @ expression *E; expression E1,f; @@ E = f(...) <... ( - E == 0 + !E | - E != 0 + E | - 0 == E + !E | - 0 != E + E ) ...> ?E = E1 @ disable is_zero,isnt_zero @ expression *E; @@ ( E == - 0 + NULL | E != - 0 + NULL | - 0 + NULL == E | - 0 + NULL != E ) Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/sm750fb')
-rw-r--r--drivers/staging/sm750fb/ddk750_chip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c
index cd1508a..9b5bb7e 100644
--- a/drivers/staging/sm750fb/ddk750_chip.c
+++ b/drivers/staging/sm750fb/ddk750_chip.c
@@ -110,7 +110,7 @@ void setChipClock(unsigned int frequency)
return;
#endif
- if (frequency != 0) {
+ if (frequency) {
/*
* Set up PLL, a structure to hold the value to be set in clocks.
*/
@@ -139,7 +139,7 @@ void setMemoryClock(unsigned int frequency)
if (getChipType() == SM750LE)
return;
#endif
- if (frequency != 0) {
+ if (frequency) {
/* Set the frequency to the maximum frequency that the DDR Memory can take
which is 336MHz. */
if (frequency > MHz(336))
@@ -187,7 +187,7 @@ void setMasterClock(unsigned int frequency)
if (getChipType() == SM750LE)
return;
#endif
- if (frequency != 0) {
+ if (frequency) {
/* Set the frequency to the maximum frequency that the SM750 engine can
run, which is about 190 MHz. */
if (frequency > MHz(190))
OpenPOWER on IntegriCloud