Skip to content

Commit eb710b1

Browse files
Satoru TakeuchiChris Mason
authored andcommitted
Btrfs: Remove unnecessary placeholder in btrfs_err_code
"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>
1 parent b76808f commit eb710b1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎include/uapi/linux/btrfs.h‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,8 +495,7 @@ struct btrfs_ioctl_send_args {
495495

496496
/* Error codes as returned by the kernel */
497497
enum btrfs_err_code {
498-
notused,
499-
BTRFS_ERROR_DEV_RAID1_MIN_NOT_MET,
498+
BTRFS_ERROR_DEV_RAID1_MIN_NOT_MET = 1,
500499
BTRFS_ERROR_DEV_RAID10_MIN_NOT_MET,
501500
BTRFS_ERROR_DEV_RAID5_MIN_NOT_MET,
502501
BTRFS_ERROR_DEV_RAID6_MIN_NOT_MET,

0 commit comments

Comments
 (0)