staging: mt29f_spinand: check for the return value of spinand_read_status
authorDevendra Naga <devendra.aaru@gmail.com>
Fri, 5 Dec 2014 20:34:27 +0000 (15:34 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 Jan 2015 00:14:16 +0000 (16:14 -0800)
commit1f5cf8028dc472d5b5374c55b1399a8c294de58d
tree40bb86d098cf184ce7561ddfe78254c18b47e88b
parent25c048680b53c689ec918b3adfcfe62e1f03d4f0
staging: mt29f_spinand: check for the return value of spinand_read_status

The spinan_read_status can fail, check for the return value and
fail if the spinand_read_status fails.

Cc: Kamlakant Patel <kamlakant.patel@broadcom.com>
Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt29f_spinand/mt29f_spinand.c