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 2990f22 commit 0fe3dbbCopy full SHA for 0fe3dbb
include/linux/dim.h
@@ -21,7 +21,7 @@
21
* We consider 10% difference as significant.
22
*/
23
#define IS_SIGNIFICANT_DIFF(val, ref) \
24
- (((100UL * abs((val) - (ref))) / (ref)) > 10)
+ ((ref) && (((100UL * abs((val) - (ref))) / (ref)) > 10))
25
26
/*
27
* Calculate the gap between two values.
0 commit comments