]> err.no Git - linux-2.6/blobdiff - drivers/md/md.c
Merge branch 'master' of ssh://master.kernel.org/pub/scm/linux/kernel/git/mchehab...
[linux-2.6] / drivers / md / md.c
index 65814b0340cbfb60a2676a00ac4b6928d7d67c86..c10ce91b64e9b432cbe797df44b7d605aa7a4609 100644 (file)
@@ -5103,7 +5103,7 @@ static int is_mddev_idle(mddev_t *mddev)
                 *
                 * Note: the following is an unsigned comparison.
                 */
-               if ((curr_events - rdev->last_events + 4096) > 8192) {
+               if ((long)curr_events - (long)rdev->last_events > 4096) {
                        rdev->last_events = curr_events;
                        idle = 0;
                }