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>
1 parent 675ef47 commit 56ac9054573354d64b9aca774371e5432f8a2454
@Sascha Hauer Sascha Hauer authored on 23 Jul 2013
Showing 1 changed file
View
commands/ubi.c