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>
This commit is contained in:
parent
e261e69e2d
commit
59f084070c
1 changed files with 3 additions and 3 deletions
|
@ -110,7 +110,7 @@ void setChipClock(unsigned int frequency)
|
||||||
return;
|
return;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (frequency != 0) {
|
if (frequency) {
|
||||||
/*
|
/*
|
||||||
* Set up PLL, a structure to hold the value to be set in clocks.
|
* 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)
|
if (getChipType() == SM750LE)
|
||||||
return;
|
return;
|
||||||
#endif
|
#endif
|
||||||
if (frequency != 0) {
|
if (frequency) {
|
||||||
/* Set the frequency to the maximum frequency that the DDR Memory can take
|
/* Set the frequency to the maximum frequency that the DDR Memory can take
|
||||||
which is 336MHz. */
|
which is 336MHz. */
|
||||||
if (frequency > MHz(336))
|
if (frequency > MHz(336))
|
||||||
|
@ -187,7 +187,7 @@ void setMasterClock(unsigned int frequency)
|
||||||
if (getChipType() == SM750LE)
|
if (getChipType() == SM750LE)
|
||||||
return;
|
return;
|
||||||
#endif
|
#endif
|
||||||
if (frequency != 0) {
|
if (frequency) {
|
||||||
/* Set the frequency to the maximum frequency that the SM750 engine can
|
/* Set the frequency to the maximum frequency that the SM750 engine can
|
||||||
run, which is about 190 MHz. */
|
run, which is about 190 MHz. */
|
||||||
if (frequency > MHz(190))
|
if (frequency > MHz(190))
|
||||||
|
|
Loading…
Add table
Reference in a new issue