Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/drm2/include/linux Placate -Wsign-compare.



details:   https://anonhg.NetBSD.org/src/rev/895d99b48389
branches:  trunk
changeset: 744849:895d99b48389
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Fri Feb 14 09:35:40 2020 +0000

description:
Placate -Wsign-compare.

diffstat:

 sys/external/bsd/drm2/include/linux/delay.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r fe03c2897fac -r 895d99b48389 sys/external/bsd/drm2/include/linux/delay.h
--- a/sys/external/bsd/drm2/include/linux/delay.h       Fri Feb 14 07:23:24 2020 +0000
+++ b/sys/external/bsd/drm2/include/linux/delay.h       Fri Feb 14 09:35:40 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: delay.h,v 1.5 2018/08/06 00:30:24 riastradh Exp $      */
+/*     $NetBSD: delay.h,v 1.6 2020/02/14 09:35:40 riastradh Exp $      */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
 msleep(unsigned int msec)
 {
        if (cold ||
-           ((hz < 1000) && (msec < (1000/hz))))
+           ((hz < 1000) && (msec < (1000/(unsigned)hz))))
                mdelay(msec);
        else
                (void)kpause("lnxmslep", false, mstohz(msec), NULL);



Home | Main Index | Thread Index | Old Index