Btrfs: Remove unnecessary placeholder in btrfs_err_code
authorSatoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Wed, 24 Dec 2014 05:52:04 +0000 (14:52 +0900)
committerChris Mason <clm@fb.com>
Tue, 3 Feb 2015 03:25:51 +0000 (19:25 -0800)
"notused" is not necessary. Set 1 to the first entry is enough.

Signed-off-by: Takeuchi Satoru <takeuchi_satoru@jp.fujitsu.com
Cc: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
include/uapi/linux/btrfs.h

index 611e1c5893b490d93d0c87a1a2d383d6d8ef435d..b6dec05c7196a22511e346242724406eef88265b 100644 (file)
@@ -495,8 +495,7 @@ struct btrfs_ioctl_send_args {
 
 /* Error codes as returned by the kernel */
 enum btrfs_err_code {
-       notused,
-       BTRFS_ERROR_DEV_RAID1_MIN_NOT_MET,
+       BTRFS_ERROR_DEV_RAID1_MIN_NOT_MET = 1,
        BTRFS_ERROR_DEV_RAID10_MIN_NOT_MET,
        BTRFS_ERROR_DEV_RAID5_MIN_NOT_MET,
        BTRFS_ERROR_DEV_RAID6_MIN_NOT_MET,