Colin Ian King e103853510 NFC: trf7970a: fix check of clock frequencies, use && instead of ||
The "or" condition (clk_freq != TRF7970A_27MHZ_CLOCK_FREQUENCY) ||
(clk_freq != TRF7970A_13MHZ_CLOCK_FREQUE) will always be true because
clk_freq cannot be equal to two different values at the same time. Use
the  && operator instead of || to fix this.

Detected by CoverityScan, CID#1430468 ("Constant expression result")

Fixes: 837eb4d21ecde7 ("NFC: trf7970a: add device tree option for 27MHz clock")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Geoff Lansberry <geoff@kuvee.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2017-06-22 23:59:01 +02:00
..
2017-06-15 01:52:32 +02:00
2017-05-04 19:15:35 -07:00
2017-06-16 15:22:42 -04:00
2017-06-13 15:09:10 +09:00
2017-06-16 11:48:40 -04:00
2017-05-05 19:33:07 -07:00
2017-04-27 11:54:49 +01:00
2017-06-17 22:54:01 -04:00
2017-04-20 09:54:24 +02:00
2017-05-09 10:01:15 -07:00
2017-05-04 19:15:35 -07:00
2017-05-18 23:54:47 -07:00
2017-05-05 11:36:44 -07:00
2017-05-11 11:12:26 -07:00
2017-06-09 09:59:51 -07:00