On Thu, Mar 23, 2017 at 9:34 AM, walter harms <wha...@bfs.de> 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.w...@profitbricks.com
URL:      https://www.profitbricks.de

Sitz der Gesellschaft: Berlin
Registergericht: Amtsgericht Charlottenburg, HRB 125506 B
Geschäftsführer: Achim Weiss

Reply via email to