From: Alex Elder Date: Thu, 14 Mar 2013 01:50:00 +0000 (-0500) Subject: libceph: define osd_req_opcode_valid() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~26^2~156 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8dd0a37bc016cfb3ac75cf8484428573bb8d862;p=pandora-kernel.git libceph: define osd_req_opcode_valid() Define a separate function to determine the validity of an opcode, and use it inside osd_req_encode_op() in order to unclutter that function. Don't update the destination op at all--and return zero--if an unsupported or unrecognized opcode is seen in osd_req_encode_op(). Signed-off-by: Alex Elder Reviewed-by: Josh Durgin --- Reading git-diff-tree failed