[PATCH v3] powerpc: Avoid signed to unsigned conversion in set_thread_tidr()
vaibhav at linux.vnet.ibm.com
Tue Nov 28 13:57:32 AEDT 2017
Sukadev Bhattiprolu <sukadev at linux.vnet.ibm.com> writes:
> We can eliminate the 'else' and be consistent with existing code, if
> we check for error (i.e rc < 0) and return rc. assign_thread_tidr() will
> not return 0, but even if it did, setting the register and thread.tidr
> to 0 should not be a problem.
Thanks for the suggestion Sukadev. I have sent out a v4 at
http://patchwork.ozlabs.org/patch/841937/ with the update.
Vaibhav Jain <vaibhav at linux.vnet.ibm.com>
Linux Technology Center, IBM India Pvt. Ltd.
More information about the Linuxppc-dev