Skip to content

Commit

Permalink
[SPARC64]: Fix bogus '&' conditinal in set_rtc_mmss().
Browse files Browse the repository at this point in the history
We're using '&' instead of '&&'.

Noticed by Roel Kluin.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Oct 31, 2007
1 parent b1d08ac commit 23e8bc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sparc64/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,7 @@ static int set_rtc_mmss(unsigned long nowtime)
* Not having a register set can lead to trouble.
* Also starfire doesn't have a tod clock.
*/
if (!mregs && !dregs & !bregs)
if (!mregs && !dregs && !bregs)
return -1;

if (mregs) {
Expand Down

0 comments on commit 23e8bc2

Please sign in to comment.