On Tue, 07 Feb 2017, Jose Abreu <jose.ab...@synopsys.com> wrote:
>> +bool drm_scdc_check_scrambling_status(struct i2c_adapter *adapter)
>> +{
>> +    u8 status;
>> +    int ret;
>> +
>> +    ret = drm_scdc_readb(adapter, SCDC_SCRAMBLER_STATUS, &status);
>> +    if (ret < 0) {
>> +            DRM_ERROR("Failed to read scrambling status, error %d\n", ret);
>> +            return false;
>> +    }
>> +
>> +    return status & SCDC_SCRAMBLING_STATUS;
>
> "return (status & SCDC_SCRAMBLING_STATUS) > 0;" ?

What's the point in that?

BR,
Jani.


-- 
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to