Re: [bug report] btrfs: add helper function check device delete able

2018-07-19 Thread Anand Jain
Noted. Thanks Dan. -Anand On 07/19/2018 04:10 PM, Dan Carpenter wrote: Hello Anand Jain, The patch a6500c9ef8ac: "btrfs: add helper function check device delete able" from Jul 10, 2018, leads to the following static checker warning: fs/btrfs/volumes.c:1871 btrfs_device_delete_able()

[bug report] btrfs: add helper function check device delete able

2018-07-19 Thread Dan Carpenter
Hello Anand Jain, The patch a6500c9ef8ac: "btrfs: add helper function check device delete able" from Jul 10, 2018, leads to the following static checker warning: fs/btrfs/volumes.c:1871 btrfs_device_delete_able() error: passing non negative 4 to ERR_PTR fs/btrfs/volumes.c