Messages in this thread | | | Subject | Re: [PATCH 3/4] scsi: fix compiler warning for sg | From | Timur Tabi <> | Date | Thu, 5 Nov 2015 09:25:11 -0600 |
| |
Sinan Kaya wrote: > > > #define MULDIV(X,MUL,DIV) mult_frac64(X, MUL, DIV)
Why bother with the macro at all? Just change the code to use do_div() directly. It's possible that the original code was written before do_div() became standard, or the developer didn't know about, which is why we have this macro in the first place.
-- Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation.
| |