From: zkabelac@sourceware.org <zkabelac@sourceware.org>
To: lvm-devel@redhat.com
Subject: LVM2 daemons/cmirrord/functions.c daemons/dmev ...
Date: 8 Feb 2012 11:36:19 -0000 [thread overview]
Message-ID: <20120208113619.21109.qmail@sourceware.org> (raw)
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2012-02-08 11:36:19
Modified files:
daemons/cmirrord: functions.c
daemons/dmeventd: dmeventd.c
libdm : libdm-deptree.c
tools : lvm.c
Log message:
Remove unneeded assignments
Variables have (or will have) those values set.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/cmirrord/functions.c.diff?cvsroot=lvm2&r1=1.31&r2=1.32
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/dmeventd/dmeventd.c.diff?cvsroot=lvm2&r1=1.86&r2=1.87
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/libdm-deptree.c.diff?cvsroot=lvm2&r1=1.153&r2=1.154
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvm.c.diff?cvsroot=lvm2&r1=1.116&r2=1.117
--- LVM2/daemons/cmirrord/functions.c 2012/02/08 11:34:46 1.31
+++ LVM2/daemons/cmirrord/functions.c 2012/02/08 11:36:18 1.32
@@ -372,7 +372,7 @@
enum sync log_sync = DEFAULTSYNC;
uint32_t block_on_error = 0;
- int disk_log = 0;
+ int disk_log;
char disk_path[128];
int unlink_path = 0;
long page_size;
--- LVM2/daemons/dmeventd/dmeventd.c 2011/12/22 15:50:39 1.86
+++ LVM2/daemons/dmeventd/dmeventd.c 2012/02/08 11:36:18 1.87
@@ -448,7 +448,7 @@
{
struct dm_event_daemon_message *msg = message_data->msg;
struct thread_status *thread;
- int i = 0, j = 0;
+ int i, j;
int ret = -1;
int count = dm_list_size(&_thread_registry);
int size = 0, current = 0;
@@ -1170,8 +1170,6 @@
if (!hit)
goto out;
- thread = hit;
-
while (1) {
if (dm_list_end(&_thread_registry, &thread->list))
goto out;
--- LVM2/libdm/libdm-deptree.c 2012/01/25 21:50:51 1.153
+++ LVM2/libdm/libdm-deptree.c 2012/02/08 11:36:18 1.154
@@ -739,10 +739,6 @@
*deps = NULL;
info->major = major;
info->minor = minor;
- info->exists = 0;
- info->live_table = 0;
- info->inactive_table = 0;
- info->read_only = 0;
return 1;
}
--- LVM2/tools/lvm.c 2011/11/12 22:44:11 1.116
+++ LVM2/tools/lvm.c 2012/02/08 11:36:19 1.117
@@ -60,7 +60,7 @@
/* Initialise if this is a new completion attempt */
if (!state) {
char *s = rl_line_buffer;
- int j = 0;
+ int j;
match_no = 0;
com = NULL;
reply other threads:[~2012-02-08 11:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120208113619.21109.qmail@sourceware.org \
--to=zkabelac@sourceware.org \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.