summaryrefslogtreecommitdiffstats
path: root/drivers/media/rc/ir-hix5hd2.c
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2015-09-17 07:12:54 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-10-22 15:48:24 -0200
commit51a3ac5f4dc45120c78fad51096d989914801457 (patch)
tree34149c80c09a17ebd468c62b4d979b2ffd778d86 /drivers/media/rc/ir-hix5hd2.c
parentbf447221a8791d0f5dd28b19336e31e48f05f04a (diff)
downloadop-kernel-dev-51a3ac5f4dc45120c78fad51096d989914801457.zip
op-kernel-dev-51a3ac5f4dc45120c78fad51096d989914801457.tar.gz
[media] c8sectpfe: fix return of garbage
The variable err was never initialized, that means we had been checking a garbage value in the for loop. Moreover if the segment is not outside the firmware file then also we have been returning the garbage. Initialize it to 0 so that on success we return the value and no need to check in the for loop also as it is initially 0 and whenever that value changes we have done a break from the loop. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/rc/ir-hix5hd2.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud