From: Jan Kiszka <[email protected]>

"Shifting signed 32-bit value by 31 bits is undefined behaviour"

Signed-off-by: Jan Kiszka <[email protected]>
---
 drivers/watchdog/atom-quark.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/watchdog/atom-quark.c b/drivers/watchdog/atom-quark.c
index b17ff27..e3a5495 100644
--- a/drivers/watchdog/atom-quark.c
+++ b/drivers/watchdog/atom-quark.c
@@ -21,7 +21,7 @@
 #define PCI_DEVICE_ID_INTEL_QUARK_X1000        0x095e
 
 #define WDTBA_REG                      0x84
-# define WDTBA_ENABLED                 (1 << 31)
+# define WDTBA_ENABLED                 (1U << 31)
 # define WDTBA_ADDRMASK                        0xffc0
 
 #define TIMER1_REG                     0x00
-- 
2.26.2

-- 
You received this message because you are subscribed to the Google Groups "EFI 
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/efibootguard-dev/f075f35c-26ee-2ebe-fde2-79eb523b7951%40siemens.com.

Reply via email to