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.
1 parent 5150d3a commit e80337bCopy full SHA for e80337b
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