Commit de636b38 authored by Dave Jones's avatar Dave Jones Committed by Greg Kroah-Hartman

staging: lustre: remove unnecessary 'magic' from lustre_pack_request

This probably made more sense when the code supported multiple protocol versions,
but now it's just obfuscation.
Signed-off-by: default avatarDave Jones <davej@fedoraproject.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2eb90a75
...@@ -244,15 +244,7 @@ int lustre_pack_request(struct ptlrpc_request *req, __u32 magic, int count, ...@@ -244,15 +244,7 @@ int lustre_pack_request(struct ptlrpc_request *req, __u32 magic, int count,
LASSERT(lens[MSG_PTLRPC_BODY_OFF] == sizeof(struct ptlrpc_body)); LASSERT(lens[MSG_PTLRPC_BODY_OFF] == sizeof(struct ptlrpc_body));
/* only use new format, we don't need to be compatible with 1.4 */ /* only use new format, we don't need to be compatible with 1.4 */
magic = LUSTRE_MSG_MAGIC_V2; return lustre_pack_request_v2(req, count, lens, bufs);
switch (magic) {
case LUSTRE_MSG_MAGIC_V2:
return lustre_pack_request_v2(req, count, lens, bufs);
default:
LASSERTF(0, "incorrect message magic: %08x\n", magic);
return -EINVAL;
}
} }
EXPORT_SYMBOL(lustre_pack_request); EXPORT_SYMBOL(lustre_pack_request);
......
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