V4L/DVB (12483): Use DIV_ROUND_CLOSEST
[firefly-linux-kernel-4.4.55.git] / drivers / media / dvb / pluto2 / pluto2.c
index 598eaf8acc6e4ef4881fe1a862716142698b5c97..80d14a065bad0755fda4af3f27edb0b9fbe18308 100644 (file)
@@ -439,7 +439,7 @@ static inline u32 divide(u32 numerator, u32 denominator)
        if (denominator == 0)
                return ~0;
 
-       return (numerator + denominator / 2) / denominator;
+       return DIV_ROUND_CLOSEST(numerator, denominator);
 }
 
 /* LG Innotek TDTE-E001P (Infineon TUA6034) */