On Fri 01 Dec 01:10 PST 2017, Jitendra Sharma wrote: > Hi Bjorn, >
Hi Jitendra, > On 11/30/2017 6:46 AM, Bjorn Andersson wrote: > > +static int qmi_calc_min_msg_len(struct qmi_elem_info *ei_array, > > + int level) > > +{ > > + int min_msg_len = 0; > min_msg_len should be u32 as it would not be negative IMHO all these sizes should be size_t and there are a few places where we should add "const" specifier to pointers. But I refrained from "fixing" these up in an effort to keep things as close to the downstream implementation as possible. If Andy agrees I'm hoping that we can take this version and then follow up with a separate patch, making the review more explicit and make it easier to track down any potential regressions from such a change. Thank you for the review! Regards, Bjorn