[PATCH] mtd: spi-nor: Check the return value from read_sr()
Fabio Estevam
festevam at gmail.com
Thu Nov 19 14:48:23 PST 2015
On Thu, Nov 19, 2015 at 7:54 PM, Brian Norris
<computersforpeace at gmail.com> wrote:
> Hmm, by changing status_old from u8 to int, do we propagate any
> sign-extension issues in this function? What if BIT(7) is set? If I
If the value returned by read_sr() has BIT(7) set then it is not an
error, right?
read_sr() can return negative on error and u8 on success.
Not sure I understand your concern.
More information about the linux-mtd
mailing list