Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Use unsigned (RAL_RF_BUSY). Found by KUBSan.



details:   https://anonhg.NetBSD.org/src/rev/0e36e82c8c28
branches:  trunk
changeset: 1000459:0e36e82c8c28
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Jul 25 11:10:38 2019 +0000

description:
Use unsigned (RAL_RF_BUSY). Found by KUBSan.

diffstat:

 sys/dev/usb/if_uralreg.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r c4cd05fbec14 -r 0e36e82c8c28 sys/dev/usb/if_uralreg.h
--- a/sys/dev/usb/if_uralreg.h  Thu Jul 25 09:28:07 2019 +0000
+++ b/sys/dev/usb/if_uralreg.h  Thu Jul 25 11:10:38 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_uralreg.h,v 1.4 2016/04/23 10:15:31 skrll Exp $ */
+/*     $NetBSD: if_uralreg.h,v 1.5 2019/07/25 11:10:38 msaitoh Exp $ */
 /*     $OpenBSD: if_ralreg.h,v 1.5 2005/04/01 13:13:43 damien Exp $  */
 
 /*-
@@ -194,7 +194,7 @@
 } __packed;
 
 #define RAL_RF_LOBUSY  (1 << 15)
-#define RAL_RF_BUSY    (1 << 31)
+#define RAL_RF_BUSY    (1U << 31)
 #define RAL_RF_20BIT   (20 << 24)
 
 #define RAL_RF1        0



Home | Main Index | Thread Index | Old Index