]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: staging: dgrp: using time_is_before_jiffies() instead of open coding 'jiffies'
authorChen Gang <gang.chen@asianux.com>
Sat, 8 Jun 2013 03:57:39 +0000 (11:57 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Jun 2013 05:20:59 +0000 (22:20 -0700)
commit4c5e12e8b5a21b7e08e51c76a5715a8faf7b0cec
tree2c88ae512ebe0feb2f24317cb06ee4daa15cfca4
parente6c76f7350753ee54172690d4ce6274e46542edc
drivers: staging: dgrp: using time_is_before_jiffies() instead of open coding 'jiffies'

Need use the proper jiffy comparison macros/functions instead of open
coding 'jiffies'.

The original 'comparation' is always true.

The related warning (with 'EXTRA_CFLAGS=-W')
  drivers/staging/dgrp/dgrp_net_ops.c:1610:10: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgrp/dgrp_net_ops.c