Commit ba690c79 authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Martin K. Petersen

osd: remove deadcode

The variable is_ver1 is always true and so OSD_CAP_LEN can never be
used.

Reported by Coverity.
Signed-off-by: default avatarSudip Mukherjee <sudip.mukherjee@codethink.co.uk>
Reviewed-by: default avatarMatthew R. Ochs <mrochs@linux.vnet.ibm.com>
Acked-by: default avatarBoaz harrosh <ooo@elecrozaur.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 9ffeca3e
...@@ -2006,9 +2006,8 @@ EXPORT_SYMBOL(osd_sec_init_nosec_doall_caps); ...@@ -2006,9 +2006,8 @@ EXPORT_SYMBOL(osd_sec_init_nosec_doall_caps);
*/ */
void osd_set_caps(struct osd_cdb *cdb, const void *caps) void osd_set_caps(struct osd_cdb *cdb, const void *caps)
{ {
bool is_ver1 = true;
/* NOTE: They start at same address */ /* NOTE: They start at same address */
memcpy(&cdb->v1.caps, caps, is_ver1 ? OSDv1_CAP_LEN : OSD_CAP_LEN); memcpy(&cdb->v1.caps, caps, OSDv1_CAP_LEN);
} }
bool osd_is_sec_alldata(struct osd_security_parameters *sec_parms __unused) bool osd_is_sec_alldata(struct osd_security_parameters *sec_parms __unused)
......
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