int lv_mknodes(struct cmd_context *cmd, const struct logical_volume *lv)
{
- int r = 1;
+ int r;
if (!lv) {
r = dm_mknodes(NULL);
{
unsigned base = BASE_UNKNOWN;
unsigned s;
- int suffix = 1, precision;
+ int suffix, precision;
uint64_t byte = UINT64_C(0);
uint64_t units = UINT64_C(1024);
char *size_buf = NULL;
char lockname[PATH_MAX];
int clvmd_cmd = 0;
const char *lock_scope;
- const char *lock_type = "";
+ const char *lock_type;
assert(strlen(resource) < sizeof(lockname));
assert(resource);
static int _do_flock(const char *file, int *fd, int operation, uint32_t nonblock)
{
- int r = 1;
+ int r;
int old_errno;
struct stat buf1, buf2;
static int _open_socket(daemon_state s)
{
- int fd = -1;
+ int fd;
int file_created = 0;
struct sockaddr_un sockaddr = { .sun_family = AF_UNIX };
struct stat buf;
const struct selection_str_list *sel)
{
struct dm_str_list *sel_item;
- unsigned int i = 1, last_found = 1;;
+ unsigned int i, last_found = 1;;
int r = 0;
/* if value has no items and selection has at leas one, it's clear there's no match */
static int _splitname(CMD_ARGS)
{
struct dmsetup_report_obj obj;
- int r = 1;
+ int r;
obj.task = NULL;
obj.info = NULL;