Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Prasanna Karthik <mkarthi3@visteon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Prasanna Karthik and committed by
Greg Kroah-Hartman
da2a7272 79b45a0f

+1 -4
+1 -4
drivers/staging/lustre/lustre/mdc/mdc_request.c
··· 2090 2090 { 2091 2091 struct kuc_hdr *lh = (struct kuc_hdr *)val; 2092 2092 struct hsm_action_list *hal = (struct hsm_action_list *)(lh + 1); 2093 - int rc; 2094 2093 2095 2094 if (len < sizeof(*lh) + sizeof(*hal)) { 2096 2095 CERROR("Short HSM message %d < %d\n", len, ··· 2110 2111 lh->kuc_msglen, hal->hal_count, hal->hal_fsname); 2111 2112 2112 2113 /* Broadcast to HSM listeners */ 2113 - rc = libcfs_kkuc_group_put(KUC_GRP_HSM, lh); 2114 - 2115 - return rc; 2114 + return libcfs_kkuc_group_put(KUC_GRP_HSM, lh); 2116 2115 } 2117 2116 2118 2117 /**