memory: emif: Remove bogus debugfs error handling
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 26 Aug 2020 11:37:59 +0000 (14:37 +0300)
committerKrzysztof Kozlowski <krzk@kernel.org>
Thu, 27 Aug 2020 19:36:02 +0000 (21:36 +0200)
commitfd22781648080cc400772b3c68aa6b059d2d5420
treee7b9883ec4ee1892e3d14417693bbeb42035ebc1
parent13d029ee51da365aa9c859db0c7395129252bde8
memory: emif: Remove bogus debugfs error handling

Callers are generally not supposed to check the return values from
debugfs functions.  Debugfs functions never return NULL so this error
handling will never trigger.  (Historically debugfs functions used to
return a mix of NULL and error pointers but it was eventually deemed too
complicated for something which wasn't intended to be used in normal
situations).

Delete all the error handling.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Link: https://lore.kernel.org/r/20200826113759.GF393664@mwanda
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
drivers/memory/emif.c