diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2015-11-23 17:24:30 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-07 22:53:40 -0800 |
commit | ba1b5c44e2a9fed6f97fb10da3b4da164d4a26e4 (patch) | |
tree | 0da1d8aeb9a9eb816b36d9042caa8cc6b8103d90 /drivers/mfd/max8925-i2c.c | |
parent | d897d7edee8eaf0a8f7924a9502fd68e72041f8c (diff) |
misc: mic: return error properly
If request_firmware() succeeds then rc becomes 0. After that if the test
for strcmp() fails then we were jumping to label done: and returning rc.
But rc being 0 we returned success whereas we have failed here and we
were supposed to return an error.
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Reviewed-by: Sudeep Dutt <sudeep.dutt@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/mfd/max8925-i2c.c')
0 files changed, 0 insertions, 0 deletions