media: siano: fix device register error path
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 10 Jun 2021 06:57:02 +0000 (08:57 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 17 Jun 2021 07:27:08 +0000 (09:27 +0200)
commit5368b1ee2939961a16e74972b69088433fc52195
tree8ee658c149fa552403173c371ea822bf01e3e6c7
parent235406dca37ecf6f00e0378e965a3dd37590c389
media: siano: fix device register error path

As reported by smatch:
drivers/media/common/siano/smsdvb-main.c:1231 smsdvb_hotplug() warn: '&client->entry' not removed from list

If an error occur at the end of the registration logic, it won't
drop the device from the list.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/common/siano/smsdvb-main.c