File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -1770,23 +1770,23 @@ static ssize_t o2hb_region_dev_store(struct config_item *item,
1770
1770
int live_threshold ;
1771
1771
1772
1772
if (reg -> hr_bdev_file )
1773
- goto out ;
1773
+ return - EINVAL ;
1774
1774
1775
1775
/* We can't heartbeat without having had our node number
1776
1776
* configured yet. */
1777
1777
if (o2nm_this_node () == O2NM_MAX_NODES )
1778
- goto out ;
1778
+ return - EINVAL ;
1779
1779
1780
1780
fd = simple_strtol (p , & p , 0 );
1781
1781
if (!p || (* p && (* p != '\n' )))
1782
- goto out ;
1782
+ return - EINVAL ;
1783
1783
1784
1784
if (fd < 0 || fd >= INT_MAX )
1785
- goto out ;
1785
+ return - EINVAL ;
1786
1786
1787
1787
f = fdget (fd );
1788
1788
if (fd_file (f ) == NULL )
1789
- goto out ;
1789
+ return - EINVAL ;
1790
1790
1791
1791
if (reg -> hr_blocks == 0 || reg -> hr_start_block == 0 ||
1792
1792
reg -> hr_block_bytes == 0 )
@@ -1908,7 +1908,6 @@ static ssize_t o2hb_region_dev_store(struct config_item *item,
1908
1908
}
1909
1909
out2 :
1910
1910
fdput (f );
1911
- out :
1912
1911
return ret ;
1913
1912
}
1914
1913
You can’t perform that action at this time.
0 commit comments