We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b977b0d + e80337b commit 7aefd61Copy full SHA for 7aefd61
include/linux/dim.h
@@ -30,7 +30,7 @@ struct net_device;
30
* We consider 10% difference as significant.
31
*/
32
#define IS_SIGNIFICANT_DIFF(val, ref) \
33
- (((100UL * abs((val) - (ref))) / (ref)) > 10)
+ ((ref) && (((100UL * abs((val) - (ref))) / (ref)) > 10))
34
35
/*
36
* Calculate the gap between two values.
0 commit comments