mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
label/lv_manip: squash some warnings
This commit is contained in:
parent
3c0f5bdd08
commit
39ce38eb88
@ -963,8 +963,6 @@ bool dev_write_bytes(struct device *dev, uint64_t start, size_t len, void *data)
|
||||
|
||||
bool dev_write_zeros(struct device *dev, uint64_t start, size_t len)
|
||||
{
|
||||
int ret;
|
||||
|
||||
if (test_mode())
|
||||
return true;
|
||||
|
||||
@ -999,8 +997,6 @@ bool dev_write_zeros(struct device *dev, uint64_t start, size_t len)
|
||||
|
||||
bool dev_set_bytes(struct device *dev, uint64_t start, size_t len, uint8_t val)
|
||||
{
|
||||
int ret;
|
||||
|
||||
if (test_mode())
|
||||
return true;
|
||||
|
||||
|
@ -30,6 +30,7 @@
|
||||
#include "lvm-exec.h"
|
||||
#include "memlock.h"
|
||||
#include "lvmlockd.h"
|
||||
#include "label.h"
|
||||
|
||||
typedef enum {
|
||||
PREFERRED,
|
||||
|
Loading…
Reference in New Issue
Block a user