Revert "staging: fsl-mc: be consistent when checking strcmp() return"
authorColin Ian King <colin.king@canonical.com>
Wed, 16 Aug 2017 17:21:40 +0000 (18:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Aug 2017 18:12:06 +0000 (11:12 -0700)
commit47f078339be902e97d0ad828ca1d614a5a95334b
tree1f7f121d3a8bc58a883f8718a580c153d1a361ee
parentef954844c7ace62f773f4f23e28d2d915adc419f
Revert "staging: fsl-mc: be consistent when checking strcmp() return"

The previous fix removed the equal to zero comparisons by the strcmps and
now the function always returns true. Revert this change to restore the
original correctly functioning code.

Detected by CoverityScan, CID#1452267 ("Constant expression result")

This reverts commit b93ad9a067e1515af42da7d56bc61f1a25075f94.

Fixes: b93ad9a067e1 ("staging: fsl-mc: be consistent when checking strcmp() return")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-mc/bus/fsl-mc-allocator.c