]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
memory: emif: Remove bogus debugfs error handling
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 26 Aug 2020 11:37:59 +0000 (14:37 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Nov 2020 10:08:45 +0000 (11:08 +0100)
commit69c0f5d0ed8284ce2a9efd5ea9557816186d3f69
tree7147e388304a011ccbe5b1aa3f44fd5fbb75df88
parent103e159f7b186c364f5c96af8680c3e0edf17d7b
memory: emif: Remove bogus debugfs error handling

[ Upstream commit fd22781648080cc400772b3c68aa6b059d2d5420 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/memory/emif.c