Commit 1d06bb4e authored by Jiayi Ye's avatar Jiayi Ye Committed by Greg Kroah-Hartman
Browse files

staging: remove unneeded parentheses around the right hand side of an assignment



In assignments such as value = (FLASH_CMD_STATUS_REG_READ << 24);, parentheses
are not needed. The Coccinelle semantic patch was used to find cases.

@r@
identifier x;
expression e1, e2;
@@

- x = (e1 << e2);
+ x = e1 << e2;

Signed-off-by: default avatarJiayi Ye <yejiayily@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3e3f878f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2411,7 +2411,7 @@ kiblnd_hdev_setup_mrs(kib_hca_dev_t *hdev)
		goto out;
	}

	mr_size = (1ULL << hdev->ibh_mr_shift);
	mr_size = 1ULL << hdev->ibh_mr_shift;
	mm_size = (unsigned long)high_memory - PAGE_OFFSET;

	hdev->ibh_nmrs = (int)((mm_size + mr_size - 1) >> hdev->ibh_mr_shift);
+1 −1
Original line number Diff line number Diff line
@@ -265,7 +265,7 @@ static void ldlm_pool_recalc_slv(struct ldlm_pool *pl)
	 * SLV. And the opposite, the more grant plan is over-consumed
	 * (load time) the faster drops SLV.
	 */
	slv_factor = (grant_usage << LDLM_POOL_SLV_SHIFT);
	slv_factor = grant_usage << LDLM_POOL_SLV_SHIFT;
	do_div(slv_factor, limit);
	slv = slv * slv_factor;
	slv = dru(slv, LDLM_POOL_SLV_SHIFT, round_up);
+1 −1
Original line number Diff line number Diff line
@@ -412,7 +412,7 @@ int libcfs_debug_init(unsigned long bufsize)
		max = TCD_MAX_PAGES;
	} else {
		max = (max / num_possible_cpus());
		max = (max << (20 - PAGE_CACHE_SHIFT));
		max = max << (20 - PAGE_CACHE_SHIFT);
	}
	rc = cfs_tracefile_init(max);

+1 −1
Original line number Diff line number Diff line
@@ -145,7 +145,7 @@ static struct ll_cl_context *ll_cl_init(struct file *file,
		 */
		io->ci_lockreq = CILR_NEVER;

		pos = (vmpage->index << PAGE_CACHE_SHIFT);
		pos = vmpage->index << PAGE_CACHE_SHIFT;

		/* Create a temp IO to serve write. */
		result = cl_io_rw_init(env, io, CIT_WRITE, pos, PAGE_CACHE_SIZE);
+1 −1
Original line number Diff line number Diff line
@@ -633,7 +633,7 @@ resizer_calculate_normal_f_div_param(struct device *dev, int input_width,
	if (!(val % 2)) {
		h1 = val;
	} else {
		val = (input_width << 7);
		val = input_width << 7;
		val -= rsz >> 1;
		val /= rsz << 1;
		val <<= 1;
Loading