Skip to content
Commit 64da392a authored by Mike Frysinger's avatar Mike Frysinger Committed by David Woodhouse
Browse files

phram: cleanup error handling and associated messages



The error handling in the phram driver is pretty bad -- in many places,
errors are silently ignored or logged, but then still ignored in the
return value.  So convert all of the code to pass back the correct return
value and log error messages properly (and using the new pr_fmt() helper).

If everything does go smoothly, rather than exit silently, dump a helpful
info message like pretty much every other MTD driver does.

Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
Acked-by: default avatarJoern Engel <joern@logfs.org>

Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent aa3651e4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment