Skip to content

Commit 0ae9926

Browse files
thenzlmartinkpetersen
authored andcommitted
scsi: aacraid: Remove useless code
There isn't a AAC_MIN_NATIVE_SIZE defined so remove eight useless lines. When at it remove also an unused #define No functional change. Signed-off-by: Tomas Henzl <thenzl@redhat.com> Link: https://lore.kernel.org/r/20250521165148.8856-1-thenzl@redhat.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent c8426f2 commit 0ae9926

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

drivers/scsi/aacraid/aacraid.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ enum {
9393

9494
#define AAC_NUM_MGT_FIB 8
9595
#define AAC_NUM_IO_FIB (1024 - AAC_NUM_MGT_FIB)
96-
#define AAC_NUM_FIB (AAC_NUM_IO_FIB + AAC_NUM_MGT_FIB)
9796

9897
#define AAC_MAX_LUN 256
9998

drivers/scsi/aacraid/commsup.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,7 @@
4848

4949
static int fib_map_alloc(struct aac_dev *dev)
5050
{
51-
if (dev->max_fib_size > AAC_MAX_NATIVE_SIZE)
52-
dev->max_cmd_size = AAC_MAX_NATIVE_SIZE;
53-
else
54-
dev->max_cmd_size = dev->max_fib_size;
55-
if (dev->max_fib_size < AAC_MAX_NATIVE_SIZE) {
56-
dev->max_cmd_size = AAC_MAX_NATIVE_SIZE;
57-
} else {
58-
dev->max_cmd_size = dev->max_fib_size;
59-
}
51+
dev->max_cmd_size = AAC_MAX_NATIVE_SIZE;
6052

6153
dprintk((KERN_INFO
6254
"allocate hardware fibs dma_alloc_coherent(%p, %d * (%d + %d), %p)\n",

0 commit comments

Comments
 (0)