OSDN Git Service

IB/iser: Remove redundant assignment
authorSagi Grimberg <sagig@mellanox.com>
Wed, 13 Aug 2014 16:54:30 +0000 (19:54 +0300)
committerRoland Dreier <roland@purestorage.com>
Thu, 9 Oct 2014 07:10:53 +0000 (00:10 -0700)
We clear the struct before - no need to do 0 assignment.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/iser/iser_memory.c

index de4db76..d4f1224 100644 (file)
@@ -510,7 +510,6 @@ iser_set_prot_checks(struct scsi_cmnd *sc, u8 *mask)
 {
        switch (scsi_get_prot_type(sc)) {
        case SCSI_PROT_DIF_TYPE0:
-               *mask = 0x0;
                break;
        case SCSI_PROT_DIF_TYPE1:
        case SCSI_PROT_DIF_TYPE2: