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

Commit 7d47b789 authored by Jean-François Moine's avatar Jean-François Moine Committed by Mauro Carvalho Chehab
Browse files

[media] gspca - jeilinj / stv06xx: Fix some warnings

parent 75b79ffc
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -183,7 +183,6 @@ static void jlj_dostream(struct work_struct *work)
	struct sd *dev = container_of(work, struct sd, work_struct);
	struct sd *dev = container_of(work, struct sd, work_struct);
	struct gspca_dev *gspca_dev = &dev->gspca_dev;
	struct gspca_dev *gspca_dev = &dev->gspca_dev;
	int blocks_left; /* 0x200-sized blocks remaining in current frame. */
	int blocks_left; /* 0x200-sized blocks remaining in current frame. */
	int size_in_blocks;
	int act_len;
	int act_len;
	int packet_type;
	int packet_type;
	int ret;
	int ret;
@@ -209,7 +208,6 @@ static void jlj_dostream(struct work_struct *work)
			act_len, JEILINJ_MAX_TRANSFER);
			act_len, JEILINJ_MAX_TRANSFER);
		if (ret < 0 || act_len < FRAME_HEADER_LEN)
		if (ret < 0 || act_len < FRAME_HEADER_LEN)
			goto quit_stream;
			goto quit_stream;
		size_in_blocks = buffer[0x0a];
		blocks_left = buffer[0x0a] - 1;
		blocks_left = buffer[0x0a] - 1;
		PDEBUG(D_STREAM, "blocks_left = 0x%x", blocks_left);
		PDEBUG(D_STREAM, "blocks_left = 0x%x", blocks_left);


+0 −2
Original line number Original line Diff line number Diff line
@@ -525,11 +525,9 @@ static int stv06xx_config(struct gspca_dev *gspca_dev,
			  const struct usb_device_id *id)
			  const struct usb_device_id *id)
{
{
	struct sd *sd = (struct sd *) gspca_dev;
	struct sd *sd = (struct sd *) gspca_dev;
	struct cam *cam;


	PDEBUG(D_PROBE, "Configuring camera");
	PDEBUG(D_PROBE, "Configuring camera");


	cam = &gspca_dev->cam;
	sd->desc = sd_desc;
	sd->desc = sd_desc;
	sd->bridge = id->driver_info;
	sd->bridge = id->driver_info;
	gspca_dev->sd_desc = &sd->desc;
	gspca_dev->sd_desc = &sd->desc;