From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932328AbdC1LnH (ORCPT ); Tue, 28 Mar 2017 07:43:07 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:4803 "EHLO dggrg01-dlp.huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S932115AbdC1LnF (ORCPT ); Tue, 28 Mar 2017 07:43:05 -0400 Subject: Re: [PATCH] scsi: hisi_sas: add missing break in switch statement To: Colin King , "James E . J . Bottomley" , "Martin K . Petersen" , References: <20170328111222.17303-1-colin.king@canonical.com> CC: , , "chenxiang (M)" , tanxiaofei From: John Garry Message-ID: <739ab862-b583-efb5-2ab4-afe40c73c35f@huawei.com> Date: Tue, 28 Mar 2017 12:42:12 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20170328111222.17303-1-colin.king@canonical.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.203.181.155] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020201.58DA4C23.028F,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: d59c4c6e23a2ba70124b5765364155fc Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28/03/2017 12:12, Colin King wrote: > From: Colin Ian King > > It appears that a break in the TRANS_TX_OPEN_CNX_ERR_NO_DESTINATION > case got accidentally removed in an earlier commit, as it stands, > the ts->stat and ts->open_rej_reason are being updated twice for this > case which looks incorrect. Fix this by adding in the missing break > statement. > > Detected by CoverityScan, CID#1422110 ("Missing break in switch") > > Fixes: 634a9585f49c7 ("scsi: hisi_sas: process error codes according to their priority") > Signed-off-by: Colin Ian King Thanks, checkpatch.pl would normally catch this but it was hidden in the formatted patch Signed-off-by: John Garry