Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8619443rwb; Thu, 24 Nov 2022 01:55:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf6sHLTx89/0OZ3yjG7wK7tfYGhCQiE7XO3IWK9KOTQAg5Q0PsIRm744wwWzxw2uqBo/nGUI X-Received: by 2002:a05:6a00:5:b0:565:af12:c329 with SMTP id h5-20020a056a00000500b00565af12c329mr13478016pfk.48.1669283755731; Thu, 24 Nov 2022 01:55:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669283755; cv=none; d=google.com; s=arc-20160816; b=xNhL9sbUEU6QHcHfSvCRxEvso5WAOc3ay27Q9U8CFADqUOEkCbL1TRZ4pGC4t/56R2 zO9AE/Nd9ARZDQTmm4zcjNjQbhWueFNPjFtOsKm688SK2zKb+cu1REs5JpVSKovph8YW 3JFAbO46La0pdw9lexuDKa/lz0nea9bPIh1y2mqyGXEW8H5Qog/2XZFKSXDZioSsCf+d t2qOsq5XgRilErphQnkPYqukldZG75cdoSCJtsjDLe3tsU26Lz4BnmXreZv7J4NazfXe hct++2KU/8k5T2YC/QLDgteaD7ufjiMYFrnvzOsvLPS7O8nRg9CFOHRsWEIzYOGFlQAB 3Npg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=lllRvA3oI99xrqNh0GUqxvbJKdhdraYQ4ObwTsD3ubk=; b=SrdXHpqE0isLyKKR06A5XlYMMeEizQFd/59hQoXBOCX/ZkYgaVpjZSTsiUeZe6wiHf pnOIzsxjvRMTWzMT6FCZOVEkEKGcKyCLYFuRRh5LKG1VyI1IxX1iJSJCIzjZcTASKbmo 6ys2F53aJNcC0/PtK5qIA/jnhI+GSArDrmmTixWAoCmGcS+7laBiEdSWS437xsri/vVJ kOXioy60xpIG4tOYv7MVEafgGyNA2MkpIIJAOypspEDSG8b3nvzQ0DAt8XOCpWqLr3Y3 DfWmBo3Fk9oyxGxqLvWsbBQkO0OcA/zA2zCr8VLh2CVGdxIJrADAQOJsESVsHk9SEt1x wi9g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w8-20020a63f508000000b0046ef21af717si307985pgh.683.2022.11.24.01.55.44; Thu, 24 Nov 2022 01:55:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229716AbiKXJ01 (ORCPT + 88 others); Thu, 24 Nov 2022 04:26:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229541AbiKXJ0Y (ORCPT ); Thu, 24 Nov 2022 04:26:24 -0500 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AF6311605A; Thu, 24 Nov 2022 01:26:23 -0800 (PST) Received: from fraeml742-chm.china.huawei.com (unknown [172.18.147.201]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4NHsxL6xqQz6HJTS; Thu, 24 Nov 2022 17:23:34 +0800 (CST) Received: from lhrpeml500004.china.huawei.com (7.191.163.9) by fraeml742-chm.china.huawei.com (10.206.15.223) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 24 Nov 2022 10:26:21 +0100 Received: from mscphis00759.huawei.com (10.123.66.134) by lhrpeml500004.china.huawei.com (7.191.163.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 24 Nov 2022 09:26:20 +0000 From: Konstantin Meskhidze To: CC: , , , , , , , Subject: [PATCH] scsi:aic94xx: Fix self assignment Date: Thu, 24 Nov 2022 17:26:05 +0800 Message-ID: <20221124092605.1677082-1-konstantin.meskhidze@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.123.66.134] X-ClientProxiedBy: mscpeml100001.china.huawei.com (7.188.26.227) To lhrpeml500004.china.huawei.com (7.191.163.9) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This commit fixes self assignment of scb->ssp_task.retry_count in asd_build_ssp_asc() function. Signed-off-by: Konstantin Meskhidze --- drivers/scsi/aic94xx/aic94xx_task.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/aic94xx/aic94xx_task.c b/drivers/scsi/aic94xx/aic94xx_task.c index ed119a3f6f2e..5a588e9f7d0a 100644 --- a/drivers/scsi/aic94xx/aic94xx_task.c +++ b/drivers/scsi/aic94xx/aic94xx_task.c @@ -493,7 +493,7 @@ static int asd_build_ssp_ascb(struct asd_ascb *ascb, struct sas_task *task, scb->ssp_task.conn_handle = cpu_to_le16( (u16)(unsigned long)dev->lldd_dev); scb->ssp_task.data_dir = data_dir_flags[task->data_dir]; - scb->ssp_task.retry_count = scb->ssp_task.retry_count; + scb->ssp_task.retry_count = task->ssp_task.retry_count; ascb->tasklet_complete = asd_task_tasklet_complete; -- 2.25.1