Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4594114iob; Sun, 8 May 2022 18:35:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdniPSNIGuKlQzF3ocngMjuYI1c3dlzps3FLf/11qECe46xpEbqYWv5J0Ei4+Am8FPfZ9Y X-Received: by 2002:a63:81c6:0:b0:3ab:6167:74b5 with SMTP id t189-20020a6381c6000000b003ab616774b5mr11095991pgd.527.1652060108143; Sun, 08 May 2022 18:35:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652060108; cv=none; d=google.com; s=arc-20160816; b=vlsxReTgb2t5fJ7YAOgTq/JYir8fnknsayzEFjJgQ8LuYT9OUkZoEtbgGqreAHlwle V2PlLC6a66MfAjtLbC9cpbOYyPuZXQJlrsMA9Tp+O7TE4GVNcALC5WJi8tQ7Ye3Mnwwt PQNtFrOveDOX9/HmsLh9Sj3J98lc/uGReEkggpGd/l8NahkMndhDJnrfFtAlAQOfmolU Zd9TXZrwRKyUlL7QZ3YVEbN6IVsc2x1aK6fJIP8gzNH85wPdUCK04WVM0DeEhfDV/HWR g00EXDCNC2OFKDYndSSyBWKtj89fwp711WI185luY/KBcSoXSBbHs/hWVwqvkGFMSRMW GH1w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wgJcAl0zdpAYB0IRw4jP+ujI4F2jFIRqxBwg3WITVhs=; b=UDqPUycBwBjx1Fbx3aUSf7Q1v/D5A7gyygb+iuMlSnMwmpd+yU3X6XN1IhOMtCnQ/6 TX1zY0JN1ZpsWX6PJZ5cLkq18b8JqQwacNsVBtHh0bBM7dtoyM4mTyLl1IdQ/hGB95E6 YmJkkG+DfQmgXS9DvrcgM7BHLmanyGDogjB7ic2Ks+f96bgxwwFpXbH6Rzi+8jz4T1G/ XBKP7XY6buqFRgQDvH8cXt+M+23QnHBWZSfwonQoPDNGPAbDIGoLMgRMmTnO0hIWwF/L 5qIlHimRI9wxh/Lr4YYBg0kUsqz5hPfeoVKDoR8KY7uhWyr/5PHpEgeoOaQy5jS8DOFq PiWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MuaSVcTM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d4-20020a056a0010c400b0050d4be3b418si14170664pfu.188.2022.05.08.18.35.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 18:35:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MuaSVcTM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D058030545; Sun, 8 May 2022 18:34:54 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380043AbiEENvI (ORCPT + 99 others); Thu, 5 May 2022 09:51:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378990AbiEENvA (ORCPT ); Thu, 5 May 2022 09:51:00 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 085ED56C33; Thu, 5 May 2022 06:47:21 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id i19so8828880eja.11; Thu, 05 May 2022 06:47:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wgJcAl0zdpAYB0IRw4jP+ujI4F2jFIRqxBwg3WITVhs=; b=MuaSVcTMd+thraNYAa4NKcji97XxwjFN1oHZIK+EzVi6hCxF4NYDaPIC6ZFNASNAwy 7mVmJvI6S0gT4ndvD65Y5hWOEnSfvBu5FNW63ye+F1HuQB3Rzt4XfXDCxJVE3BtAoB/b 98bk6RV54sZq8NySLiAuGb6emx3nNqLX1wurZTmCHveYWEqxiIHP002SShjvC+wdGCtI TW0rGGycs/C5X4DAaLfmN3eWVacvQg1IrgRnZO6gVMAnjB2EhZ7uWSqW36GzfA+A4TQ1 LRji3bnPc3qFCRjEbGwHgICsSz2DwePH9g9DK/Pubbh76cV5yfN8EM6RI9gpPbpEiIhD HPyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wgJcAl0zdpAYB0IRw4jP+ujI4F2jFIRqxBwg3WITVhs=; b=mOreMok/0dH86n9GliBpHNAmd3erb1V4NeNheQFtcyvcrEAYZSA6n0s+M8TedSE04D HxVRNhD3TlFEsEsN9edpPZMtj2uWiKYUhnY2O/rIql3FC+XQJocirGHLVfgAg7o361k8 Q9lMW+apMqe0eCwPfIFGPNLDjYaf8eenvonq4w1OMxnWp75v8MvHIzHIFgOpGGJ4r6IT RUfdTBQ4bkUaV9EnDXEdmS9fT5m7qI0p95mHVaLh6ts81lLnankrH4adzzdyglRtEqcy 9XhlCF+jABpQ+gj+5wfSEZtMABvPPs2DLLqGBc5jUF7PaafPdsvjl71hCQND0eo6fITy QFpQ== X-Gm-Message-State: AOAM532l/ImmZ/UoMeFGq0pfm3vpKkbr5WZDsPdPBaYB5d2Wc0OrMaxN GSEUNbpmHoR0omb4Ez1GacI= X-Received: by 2002:a17:906:2652:b0:6f3:a042:6b51 with SMTP id i18-20020a170906265200b006f3a0426b51mr26415172ejc.565.1651758439635; Thu, 05 May 2022 06:47:19 -0700 (PDT) Received: from linux.. (p5dd1ed70.dip0.t-ipconnect.de. [93.209.237.112]) by smtp.gmail.com with ESMTPSA id 26-20020a170906301a00b006f3ef214e69sm728324ejz.207.2022.05.05.06.47.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 May 2022 06:47:19 -0700 (PDT) From: Bean Huo To: alim.akhtar@samsung.com, avri.altman@wdc.com, asutoshd@codeaurora.org, jejb@linux.ibm.com, martin.petersen@oracle.com, stanley.chu@mediatek.com, beanhuo@micron.com, bvanassche@acm.org, tomas.winkler@intel.com, cang@codeaurora.org, daejun7.park@samsung.com, peter.wang@mediatek.com, powen.kao@mediatek.com, keosung.park@samsung.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 2/6] scsi: ufshpb: Remove 0 assignment for enum value Date: Thu, 5 May 2022 15:47:03 +0200 Message-Id: <20220505134707.35929-3-huobean@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220505134707.35929-1-huobean@gmail.com> References: <20220505134707.35929-1-huobean@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Bean Huo If the first enumerator has no initializer, the value of the corresponding constant is zero. Reviewed-by: Keoseong Park Signed-off-by: Bean Huo --- drivers/scsi/ufs/ufshpb.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/ufs/ufshpb.h b/drivers/scsi/ufs/ufshpb.h index 7aa0dc58ee9f..b83b9ec9044a 100644 --- a/drivers/scsi/ufs/ufshpb.h +++ b/drivers/scsi/ufs/ufshpb.h @@ -59,8 +59,8 @@ enum UFSHPB_MODE { }; enum UFSHPB_STATE { - HPB_INIT = 0, - HPB_PRESENT = 1, + HPB_INIT, + HPB_PRESENT, HPB_SUSPEND, HPB_FAILED, HPB_RESET, -- 2.34.1