Commit 9581bada authored by Amitoj Kaur Chawla's avatar Amitoj Kaur Chawla Committed by Greg Kroah-Hartman

staging: lustre: mgc: Remove useless cast on void pointer

The semantic patch used to find this is:

@r@
expression x;
void* e;
type T;
identifier f;
@@

(
  *((T *)e)
|
  ((T *)x)[...]
|
  ((T *)x)->f
|
- (T *)
  e
)
Signed-off-by: default avatarAmitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7f93fca9
...@@ -756,7 +756,7 @@ static int mgc_blocking_ast(struct ldlm_lock *lock, struct ldlm_lock_desc *desc, ...@@ -756,7 +756,7 @@ static int mgc_blocking_ast(struct ldlm_lock *lock, struct ldlm_lock_desc *desc,
void *data, int flag) void *data, int flag)
{ {
struct lustre_handle lockh; struct lustre_handle lockh;
struct config_llog_data *cld = (struct config_llog_data *)data; struct config_llog_data *cld = data;
int rc = 0; int rc = 0;
switch (flag) { switch (flag) {
...@@ -860,7 +860,7 @@ static int mgc_enqueue(struct obd_export *exp, struct lov_stripe_md *lsm, ...@@ -860,7 +860,7 @@ static int mgc_enqueue(struct obd_export *exp, struct lov_stripe_md *lsm,
void *data, __u32 lvb_len, void *lvb_swabber, void *data, __u32 lvb_len, void *lvb_swabber,
struct lustre_handle *lockh) struct lustre_handle *lockh)
{ {
struct config_llog_data *cld = (struct config_llog_data *)data; struct config_llog_data *cld = data;
struct ldlm_enqueue_info einfo = { struct ldlm_enqueue_info einfo = {
.ei_type = type, .ei_type = type,
.ei_mode = mode, .ei_mode = mode,
...@@ -973,7 +973,7 @@ static int mgc_set_info_async(const struct lu_env *env, struct obd_export *exp, ...@@ -973,7 +973,7 @@ static int mgc_set_info_async(const struct lu_env *env, struct obd_export *exp,
if (KEY_IS(KEY_SET_INFO)) { if (KEY_IS(KEY_SET_INFO)) {
struct mgs_send_param *msp; struct mgs_send_param *msp;
msp = (struct mgs_send_param *)val; msp = val;
rc = mgc_set_mgs_param(exp, msp); rc = mgc_set_mgs_param(exp, msp);
return rc; return rc;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment