replaced max() macro with conditional expression
parent
aa1ca406d6
commit
2af90a581d
|
@ -74,7 +74,7 @@ do { \
|
|||
ret = -EBUSY; \
|
||||
break; \
|
||||
} \
|
||||
schedule_timeout(max(HZ/100,1)); \
|
||||
schedule_timeout((HZ/100 > 1) ? HZ/100 : 1); \
|
||||
if (signal_pending(current)) { \
|
||||
ret = -EINTR; \
|
||||
break; \
|
||||
|
|
|
@ -74,7 +74,7 @@ do { \
|
|||
ret = -EBUSY; \
|
||||
break; \
|
||||
} \
|
||||
schedule_timeout(max(HZ/100,1)); \
|
||||
schedule_timeout((HZ/100 > 1) ? HZ/100 : 1); \
|
||||
if (signal_pending(current)) { \
|
||||
ret = -EINTR; \
|
||||
break; \
|
||||
|
|
Loading…
Reference in New Issue