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

Commit b2fc77bc authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

media: staging: atomisp: get rid of stupid statements



It makes no sense to have a do nothing statement like:

	(void)stage;

Fix those warnings:
	drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css_params.c:3808 sh_css_param_update_isp_params() error: uninitialized symbol 'stage'.
	drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css_sp.c:1444 sh_css_update_host2sp_offline_frame() error: uninitialized symbol 'HIVE_ADDR_host_sp_com'.
	drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css_sp.c:1475 sh_css_update_host2sp_mipi_frame() error: uninitialized symbol 'HIVE_ADDR_host_sp_com'.
	drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css_sp.c:1502 sh_css_update_host2sp_mipi_metadata() error: uninitialized symbol 'HIVE_ADDR_host_sp_com'.
	drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css_sp.c:1522 sh_css_update_host2sp_num_mipi_frames() error: uninitialized symbol 'HIVE_ADDR_host_sp_com'.
	drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css_sp.c:1541 sh_css_update_host2sp_cont_num_raw_frames() error: uninitialized symbol 'HIVE_ADDR_host_sp_com'.

Acked-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 89331129
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -8082,7 +8082,6 @@ create_host_regular_capture_pipeline(struct ia_css_pipe *pipe)
				return err;
				return err;
			}
			}
		}
		}
		(void)frm;
		/* If we use copy iso primary,
		/* If we use copy iso primary,
		   the input must be yuv iso raw */
		   the input must be yuv iso raw */
		current_stage->args.copy_vf =
		current_stage->args.copy_vf =
+0 −1
Original line number Original line Diff line number Diff line
@@ -3805,7 +3805,6 @@ sh_css_param_update_isp_params(struct ia_css_pipe *curr_pipe,


		enum sh_css_queue_id queue_id;
		enum sh_css_queue_id queue_id;


		(void)stage;
		pipe = curr_pipe->stream->pipes[i];
		pipe = curr_pipe->stream->pipes[i];
		pipeline = ia_css_pipe_get_pipeline(pipe);
		pipeline = ia_css_pipe_get_pipeline(pipe);
		pipe_num = ia_css_pipe_get_pipe_num(pipe);
		pipe_num = ia_css_pipe_get_pipe_num(pipe);
+3 −13
Original line number Original line Diff line number Diff line
@@ -71,7 +71,7 @@
struct sh_css_sp_group		sh_css_sp_group;
struct sh_css_sp_group		sh_css_sp_group;
struct sh_css_sp_stage		sh_css_sp_stage;
struct sh_css_sp_stage		sh_css_sp_stage;
struct sh_css_isp_stage		sh_css_isp_stage;
struct sh_css_isp_stage		sh_css_isp_stage;
struct sh_css_sp_output		sh_css_sp_output;
static struct sh_css_sp_output		sh_css_sp_output;
static struct sh_css_sp_per_frame_data per_frame_data;
static struct sh_css_sp_per_frame_data per_frame_data;


/* true if SP supports frame loop and host2sp_commands */
/* true if SP supports frame loop and host2sp_commands */
@@ -1441,8 +1441,6 @@ sh_css_update_host2sp_offline_frame(
	unsigned int HIVE_ADDR_host_sp_com;
	unsigned int HIVE_ADDR_host_sp_com;
	unsigned int offset;
	unsigned int offset;


	(void)HIVE_ADDR_host_sp_com; /* Suppres warnings in CRUN */

	assert(frame_num < NUM_CONTINUOUS_FRAMES);
	assert(frame_num < NUM_CONTINUOUS_FRAMES);


	/* Write new frame data into SP DMEM */
	/* Write new frame data into SP DMEM */
@@ -1472,8 +1470,6 @@ sh_css_update_host2sp_mipi_frame(
	unsigned int HIVE_ADDR_host_sp_com;
	unsigned int HIVE_ADDR_host_sp_com;
	unsigned int offset;
	unsigned int offset;


	(void)HIVE_ADDR_host_sp_com; /* Suppres warnings in CRUN */

	/* MIPI buffers are dedicated to port, so now there are more of them. */
	/* MIPI buffers are dedicated to port, so now there are more of them. */
	assert(frame_num < (N_CSI_PORTS * NUM_MIPI_FRAMES_PER_STREAM));
	assert(frame_num < (N_CSI_PORTS * NUM_MIPI_FRAMES_PER_STREAM));


@@ -1499,8 +1495,6 @@ sh_css_update_host2sp_mipi_metadata(
	unsigned int HIVE_ADDR_host_sp_com;
	unsigned int HIVE_ADDR_host_sp_com;
	unsigned int o;
	unsigned int o;


	(void)HIVE_ADDR_host_sp_com; /* Suppres warnings in CRUN */

	/* MIPI buffers are dedicated to port, so now there are more of them. */
	/* MIPI buffers are dedicated to port, so now there are more of them. */
	assert(frame_num < (N_CSI_PORTS * NUM_MIPI_FRAMES_PER_STREAM));
	assert(frame_num < (N_CSI_PORTS * NUM_MIPI_FRAMES_PER_STREAM));


@@ -1519,8 +1513,6 @@ sh_css_update_host2sp_num_mipi_frames(unsigned num_frames)
	unsigned int HIVE_ADDR_host_sp_com;
	unsigned int HIVE_ADDR_host_sp_com;
	unsigned int offset;
	unsigned int offset;


	(void)HIVE_ADDR_host_sp_com; /* Suppres warnings in CRUN */

	/* Write new frame data into SP DMEM */
	/* Write new frame data into SP DMEM */
	HIVE_ADDR_host_sp_com = sh_css_sp_fw.info.sp.host_sp_com;
	HIVE_ADDR_host_sp_com = sh_css_sp_fw.info.sp.host_sp_com;
	offset = (unsigned int)offsetof(struct host_sp_communication, host2sp_num_mipi_frames)
	offset = (unsigned int)offsetof(struct host_sp_communication, host2sp_num_mipi_frames)
@@ -1538,8 +1530,6 @@ sh_css_update_host2sp_cont_num_raw_frames(unsigned num_frames, bool set_avail)
	unsigned int extra_num_frames, avail_num_frames;
	unsigned int extra_num_frames, avail_num_frames;
	unsigned int offset, offset_extra;
	unsigned int offset, offset_extra;


	(void)HIVE_ADDR_host_sp_com; /* Suppres warnings in CRUN */

	/* Write new frame data into SP DMEM */
	/* Write new frame data into SP DMEM */
	fw = &sh_css_sp_fw;
	fw = &sh_css_sp_fw;
	HIVE_ADDR_host_sp_com = fw->info.sp.host_sp_com;
	HIVE_ADDR_host_sp_com = fw->info.sp.host_sp_com;