On Thu, Mar 23, 2017 at 9:34 AM, walter harms <wharms@xxxxxx> wrote: >> @@ -4613,15 +4616,15 @@ static int pm8001_chip_phy_ctl_req(struct pm8001_hba_info *pm8001_ha, >> >> static u32 pm8001_chip_is_our_interupt(struct pm8001_hba_info *pm8001_ha) >> { >> - u32 value; >> #ifdef PM8001_USE_MSIX >> return 1; >> -#endif >> - value = pm8001_cr32(pm8001_ha, 0, MSGU_ODR); >> +#else >> + u32 value = pm8001_cr32(pm8001_ha, 0, MSGU_ODR); >> + >> if (value) >> return 1; >> return 0; >> - >> +#endif >> } >> > > This is a bit strange, why do this function return u32 ? > > re, > wh > >> /** Hi Walter, Feel free to submit a patch to change it to bool. Thanks -- Jinpu Wang Linux Kernel Developer ProfitBricks GmbH Greifswalder Str. 207 D - 10405 Berlin Tel: +49 30 577 008 042 Fax: +49 30 577 008 299 Email: jinpu.wang@xxxxxxxxxxxxxxxx URL: https://www.profitbricks.de Sitz der Gesellschaft: Berlin Registergericht: Amtsgericht Charlottenburg, HRB 125506 B Geschäftsführer: Achim Weiss -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html