Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb17141c authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab
Browse files

[media] radio-bcm2048: fix compiler warning



radio-bcm2048.c: In function 'bcm2048_i2c_driver_probe':
radio-bcm2048.c:2597:11: warning: variable 'skip_release' set but not used [-Wunused-but-set-variable]
  int err, skip_release = 0;
             ^

Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 21de82e3
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2593,7 +2593,7 @@ static int bcm2048_i2c_driver_probe(struct i2c_client *client,
					const struct i2c_device_id *id)
{
	struct bcm2048_device *bdev;
	int err, skip_release = 0;
	int err;

	bdev = kzalloc(sizeof(*bdev), GFP_KERNEL);
	if (!bdev) {
@@ -2646,7 +2646,6 @@ static int bcm2048_i2c_driver_probe(struct i2c_client *client,
	bcm2048_sysfs_unregister_properties(bdev, ARRAY_SIZE(attrs));
free_registration:
	video_unregister_device(&bdev->videodev);
	skip_release = 1;
free_irq:
	if (client->irq)
		free_irq(client->irq, bdev);