From 6df6692708aea6cd44b58870a78326e2fd6a20e3 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Mon, 27 Aug 2012 20:40:05 +0000 Subject: [PATCH] scst: Remove a superfluous cast Signed-off-by: Bart Van Assche git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4480 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index c1592bfcb..4c8cc5b35 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -6430,7 +6430,7 @@ static int get_cdb_info_len_1(struct scst_cmd *cmd, cmd->op_flags |= SCST_LBA_NOT_VALID; cmd->lba = 0; - cmd->bufflen = (u32)cmd->cdb[sdbops->info_len_off]; + cmd->bufflen = cmd->cdb[sdbops->info_len_off]; cmd->data_len = cmd->bufflen; return 0; }