Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp416032pxf; Thu, 8 Apr 2021 05:57:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgOaqciyjX2zY7rNkT3nYUY2bTgcevNb7GVK9FK1nOobXZIVXvs08jk59nodS505c7JCiV X-Received: by 2002:a17:906:d8c3:: with SMTP id re3mr10350276ejb.106.1617886669339; Thu, 08 Apr 2021 05:57:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617886669; cv=none; d=google.com; s=arc-20160816; b=gKGQbAcorqwq/KpOz8TROpjtVmOZn2jWLJSkllZ876Af4qvru4LpDhdBo7MYebNEDO pf05Iko+jAgwBiJZPtDBmKiAjjej+ah3DZnZH3orXgqVUHIguSsiVUkxHk1pFh+ChGNm nmGwayjdDK9hellpSKuMfFwvPnwCvSM2MPcK60Hz8v3vvUUkIs/qFvMs6z6mM0KyWAq8 TigG64a1SoAh2Vk6jkgDEVytvlnMbEmnP0U22f1TxuR88+CbID5nZu4WINBBxd6g1mK5 Z0qOSC2YNv/hFa4v967/Y526rv2TmpbS6uHC3D6UEI25mBYV6W9uu/LiGG7faCDS2+sI 4gPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=vxsRCHqbB9irFnByir0XaK2m4Hv9suXgsRCEdWa7oiQ=; b=Yu+Zye3n0ek5g/Sv3dV5Q7yy4ZIw0LjmCPO1hRYNRkYZZIW4aahXPp6zw3XxZocEqa LkHcRwkMEHxsr7/0qNYXCPQN9Nth/dWkfT2wQuYKyFsjC0x4837DhOMftJh4BjLn29WO JKmz3TkqN2RTfLRg29gOwuVnjykqzAjtEOJPJQcSNEt67RMh/fogC7Af6WUncVgAa6wJ HxBPfxf/UZmYF6/S/tqQt22YoBKo5iQ+A/0/MEo8/on2ycqNsxXFf/evbQT8HOc6TMAV tbtWbIeohaHmE7co+7SMmp6pSSrO7O5a/Y5OJ19PSA8KfiTEcXhzLsp3Cq8pPS78Gt/u iznA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sa16si11655589ejb.552.2021.04.08.05.57.26; Thu, 08 Apr 2021 05:57:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231596AbhDHM4h (ORCPT + 99 others); Thu, 8 Apr 2021 08:56:37 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:15983 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231560AbhDHM4d (ORCPT ); Thu, 8 Apr 2021 08:56:33 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4FGLmw2TJmzyNjp; Thu, 8 Apr 2021 20:54:08 +0800 (CST) Received: from huawei.com (10.69.192.56) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.498.0; Thu, 8 Apr 2021 20:56:09 +0800 From: Luo Jiaxing To: , , CC: , , , Subject: [PATCH v3 2/2] scsi: pm8001: clean up for open brace Date: Thu, 8 Apr 2021 20:56:33 +0800 Message-ID: <1617886593-36421-3-git-send-email-luojiaxing@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1617886593-36421-1-git-send-email-luojiaxing@huawei.com> References: <1617886593-36421-1-git-send-email-luojiaxing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are few error about open brace is reported by checkpatch.pl: ERROR: that open brace { should be on the previous line +static struct error_fw flash_error_table[] = +{ So fix them all. Signed-off-by: Jianqin Xie Signed-off-by: Luo Jiaxing --- drivers/scsi/pm8001/pm8001_ctl.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/pm8001/pm8001_ctl.c b/drivers/scsi/pm8001/pm8001_ctl.c index 90b816f..8c253b0 100644 --- a/drivers/scsi/pm8001/pm8001_ctl.c +++ b/drivers/scsi/pm8001/pm8001_ctl.c @@ -645,8 +645,7 @@ struct flash_command { int code; }; -static struct flash_command flash_command_table[] = -{ +static const struct flash_command flash_command_table[] = { {"set_nvmd", FLASH_CMD_SET_NVMD}, {"update", FLASH_CMD_UPDATE}, {"", FLASH_CMD_NONE} /* Last entry should be NULL. */ @@ -657,8 +656,7 @@ struct error_fw { int err_code; }; -static struct error_fw flash_error_table[] = -{ +static const struct error_fw flash_error_table[] = { {"Failed to open fw image file", FAIL_OPEN_BIOS_FILE}, {"image header mismatch", FLASH_UPDATE_HDR_ERR}, {"image offset mismatch", FLASH_UPDATE_OFFSET_ERR}, -- 2.7.4