]> git.baikalelectronics.ru Git - kernel.git/commitdiff
scsi: ufs: ufshpb: Remove enum initialization value
authorBean Huo <beanhuo@micron.com>
Thu, 5 May 2022 13:47:03 +0000 (15:47 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 11 May 2022 02:01:51 +0000 (22:01 -0400)
If the first enumerator has no initializer, the value of the corresponding
constant is zero.

Link: https://lore.kernel.org/r/20220505134707.35929-3-huobean@gmail.com
Reviewed-by: Keoseong Park <keosung.park@samsung.com>
Signed-off-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshpb.h

index 7aa0dc58ee9fb2db98284278573bd2d73b509782..b83b9ec9044a3c5bee1644aea7ca3a148e0e263c 100644 (file)
@@ -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,