diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-07-23 11:29:34 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-07-23 16:32:23 +0200 |
commit | 56ac9054573354d64b9aca774371e5432f8a2454 (patch) | |
tree | de0ca22128f0780e19dfa643d70a0d1a59251f60 /drivers | |
parent | 675ef4770f1c896b8a24e89699b501c90f1847d9 (diff) | |
download | barebox-56ac9054573354d64b9aca774371e5432f8a2454.tar.gz barebox-56ac9054573354d64b9aca774371e5432f8a2454.tar.xz |
ubiattach command: Properly check return values
- print error when ioctl fails, not a combined message when one of
ioctl or ubi_attach_mtd_dev failed.
- ubi_attach_mtd_dev() returns the ubi number for success, not 0, so
check for ret < 0 to detect errors.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions