Commit da2a7272 authored by Prasanna Karthik's avatar Prasanna Karthik Committed by Greg Kroah-Hartman

staging:lustre:mdc: Fix return statement reported by coccinelle

Modified return statement and removed local declaration no longer
needed. No Compiler warnings.
Signed-off-by: default avatarPrasanna Karthik <mkarthi3@visteon.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 79b45a0f
......@@ -2090,7 +2090,6 @@ static int mdc_hsm_copytool_send(int len, void *val)
{
struct kuc_hdr *lh = (struct kuc_hdr *)val;
struct hsm_action_list *hal = (struct hsm_action_list *)(lh + 1);
int rc;
if (len < sizeof(*lh) + sizeof(*hal)) {
CERROR("Short HSM message %d < %d\n", len,
......@@ -2111,9 +2110,7 @@ static int mdc_hsm_copytool_send(int len, void *val)
lh->kuc_msglen, hal->hal_count, hal->hal_fsname);
/* Broadcast to HSM listeners */
rc = libcfs_kkuc_group_put(KUC_GRP_HSM, lh);
return rc;
return libcfs_kkuc_group_put(KUC_GRP_HSM, lh);
}
/**
......
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