mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
staging: lustre: mdc: Removed unneeded NULL check
Do not bother checking the return value of changelog_kuc_hdr() against NULL since this value was dereferenced earlier. Signed-off-by: Henri Doreau <henri.doreau@cea.fr> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4189 Reviewed-on: http://review.whamcloud.com/12919 Reviewed-by: John L. Hammond <john.hammond@intel.com> Reviewed-by: Faccini Bruno <bruno.faccini@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com> Signed-off-by: James Simmons <jsimmons@infradead.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a823acf590
commit
6ffa4ec96c
@ -1867,10 +1867,8 @@ static int mdc_changelog_send_thread(void *csdata)
|
||||
|
||||
/* Send EOF no matter what our result */
|
||||
kuch = changelog_kuc_hdr(cs->cs_buf, sizeof(*kuch), cs->cs_flags);
|
||||
if (kuch) {
|
||||
kuch->kuc_msgtype = CL_EOF;
|
||||
libcfs_kkuc_msg_put(cs->cs_fp, kuch);
|
||||
}
|
||||
kuch->kuc_msgtype = CL_EOF;
|
||||
libcfs_kkuc_msg_put(cs->cs_fp, kuch);
|
||||
|
||||
out:
|
||||
fput(cs->cs_fp);
|
||||
|
Loading…
Reference in New Issue
Block a user