Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8622481rwb; Thu, 24 Nov 2022 01:59:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf5YIVaYIK1w8WCO4cbBXdkp6f6pRNGWvSuHvDSoMRxE0qGvqRH6Ld+mq8ZZuaZ8QKE0PNDw X-Received: by 2002:a63:1062:0:b0:470:a47:996a with SMTP id 34-20020a631062000000b004700a47996amr11440638pgq.377.1669283963832; Thu, 24 Nov 2022 01:59:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669283963; cv=none; d=google.com; s=arc-20160816; b=qnokt8Qq+AKcHZatYbo/tlO6gieMDFnKccu5eXgABlV9oRhTd57QniPP8Ac8iLei2q seqe/VP9qNnpU/wievjQKwiPbDyG+Tpunh+qDtthxAPaT90Tyzz0TnBXPrIp+igkw4Di aLD9Gpw8Bt/ydZSDwdJ6Jo/XS+fvQ8bniLDmswh7U5Dg3BNfWhkNi333z5j/6vizMiG0 atnbKTXaQShCmdumAF1ONhWaRfeJCvPHurKJvfeYVqxw6t1jFpygl7miueuStaXqVzRN /HkoSaqkP83G9bRaX4iWnxoAby/M7qIawH0OetyAA7mN1PXOQ58YzyAGLpv0wluIUH1K Shhg== 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=PIKRR2+s0hyIvSH0ya57xGAzUNJy0dZZmp81n3TmS2AwJflcy7U5DoScfDdVyNpdr6 mMtAnF9wbo80Nv0W3EjGdV+ZPKymLQgMSInhT3d8cqe1x4P24J4ad2mMjldFM2zqPzYn ortLXpckYQU08z2s2S8vIw/9GGdzMvO/tlmVNP/eq1EPRmUYnLfIfOBrEQEwnH6EXO0J htKC7NRl0G+bzJZgyBc/ADxK8JGHvaRznsKBTtbBAlvOjzo2eN8rZRId2D3Vf3nqxtDL A8P44hhzMaEsRgAc9/3nR3Te6T1NBt0CTZEWlgTiSPzJgvwJCXmqak10/9SHb6DFIDHq 0OVw== 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 m5-20020a632605000000b0043961d06e6bsi714142pgm.787.2022.11.24.01.59.13; Thu, 24 Nov 2022 01:59:23 -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 S229497AbiKXJb6 (ORCPT + 87 others); Thu, 24 Nov 2022 04:31:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229755AbiKXJb4 (ORCPT ); Thu, 24 Nov 2022 04:31:56 -0500 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11ED911E714; Thu, 24 Nov 2022 01:31:55 -0800 (PST) Received: from frapeml100006.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4NHt3l18nJz6HJbZ; Thu, 24 Nov 2022 17:29:07 +0800 (CST) Received: from lhrpeml500004.china.huawei.com (7.191.163.9) by frapeml100006.china.huawei.com (7.182.85.201) 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:31:53 +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:31:52 +0000 From: Konstantin Meskhidze To: CC: , , , , , , Subject: [PATCH] scsi:aic94xx: Fix self assignment Date: Thu, 24 Nov 2022 17:31:41 +0800 Message-ID: <20221124093141.1677633-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