mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-17 12:46:27 +00:00
scst_lib: Remove dead code
Since block_shift is unsigned, it can never be negative. See also commit
1e95312e49 ("Reenable block_shift calculation for tapes").
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9605 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -12491,8 +12491,6 @@ int scst_tape_generic_parse(struct scst_cmd *cmd)
|
||||
shift_left_overflows(cmd->data_len, block_shift) ||
|
||||
shift_left_overflows(cmd->out_bufflen, block_shift);
|
||||
|
||||
EXTRACHECKS_BUG_ON(block_shift < 0);
|
||||
|
||||
BUILD_BUG_ON(sizeof(cmd->bufflen) != 4);
|
||||
BUILD_BUG_ON(sizeof(cmd->out_bufflen) != 4);
|
||||
if (unlikely(overflow)) {
|
||||
|
||||
Reference in New Issue
Block a user