firmware: clean up filesystem load exit path
authorKees Cook <keescook@chromium.org>
Thu, 4 Feb 2016 21:15:02 +0000 (13:15 -0800)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Thu, 18 Feb 2016 22:14:01 +0000 (17:14 -0500)
commit4b2530d819e179ae3352c38a1ceff929a922d070
tree5a2418b846be2d02fd3741047aaabec9c9d932e9
parent5275d194e0e56db2bdc43e58f5e54b8e36d6fb03
firmware: clean up filesystem load exit path

This makes the error and success paths more readable while trying to
load firmware from the filesystem.

Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: Josh Boyer <jwboyer@fedoraproject.org>
Cc: David Howells <dhowells@redhat.com>
Acked-by: Luis R. Rodriguez <mcgrof@kernel.org>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
drivers/base/firmware_class.c