Explorar o código

[SPARC64]: Fix bogus '&' conditinal in set_rtc_mmss().

We're using '&' instead of '&&'.

Noticed by Roel Kluin.

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller %!s(int64=17) %!d(string=hai) anos
pai
achega
23e8bc200c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      arch/sparc64/kernel/time.c

+ 1 - 1
arch/sparc64/kernel/time.c

@@ -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) {