scsi: qla2xxx: Remove increment of interface err cnt
authorSaurav Kashyap <skashyap@marvell.com>
Mon, 19 Dec 2022 11:07:46 +0000 (03:07 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:34:29 +0000 (09:34 +0100)
commit d676a9e3d9efb7e93df460bcf4c445496c16314f upstream.

Residual underrun is not an interface error, hence no need to increment
that count.

Fixes: dbf1f53cfd23 ("scsi: qla2xxx: Implementation to get and manage host, target stats and initiator port")
Cc: stable@vger.kernel.org
Signed-off-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/qla2xxx/qla_isr.c

index 759bea6..cbbd701 100644 (file)
@@ -3363,8 +3363,6 @@ qla2x00_status_entry(scsi_qla_host_t *vha, struct rsp_que *rsp, void *pkt)
                                       "Dropped frame(s) detected (0x%x of 0x%x bytes).\n",
                                       resid, scsi_bufflen(cp));
 
-                               vha->interface_err_cnt++;
-
                                res = DID_ERROR << 16 | lscsi_status;
                                goto check_scsi_status;
                        }