]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
x86/platform/iosf_mbi: Check return value of debugfs_create properly
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 8 Jul 2015 14:45:06 +0000 (17:45 +0300)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 16 Jul 2015 15:48:48 +0000 (17:48 +0200)
commit64279c7e05264f9774c6c9ee65a5b9ed186e442b
tree6cb11a74346063ffdcb76f06e3eb71ec5d5e1126
parent23ae2a16bb39d999892a86a65933fe3e9b6b525f
x86/platform/iosf_mbi: Check return value of debugfs_create properly

The code checks the result of the first debugfs_create call several
times and fails to check the result of the subsequent calls due to
missing assigments.

Add the missing assignments and check only for !res because
debugfs_create() returns only NULL on error and not an encoded error
code.

[ tglx: Massaged changelog ]

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: David E . Box <david.e.box@linux.intel.com>
Link: http://lkml.kernel.org/r/1436366709-17683-3-git-send-email-andriy.shevchenko@linux.intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/platform/intel/iosf_mbi.c