From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17740 invoked by alias); 25 Sep 2011 19:41:27 -0000 Received: (qmail 17723 invoked by uid 9737); 25 Sep 2011 19:41:27 -0000 Date: Sun, 25 Sep 2011 19:41:00 -0000 Message-ID: <20110925194127.17721.qmail@sourceware.org> From: zkabelac@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/libdm libdm-config.c Mailing-List: contact lvm2-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: lvm2-cvs-owner@sourceware.org X-SW-Source: 2011-09/txt/msg00132.txt.bz2 CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: zkabelac@sourceware.org 2011-09-25 19:41:27 Modified files: libdm : libdm-config.c Log message: Replace test for NULL of root->child with test for NULL l It's 100% equivalent test - since it always happen for the first iteration. But the check for 'l' is understandable with analyzers - since analyzer is not smart enough to deduce connection between root->child == NULL. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/libdm-config.c.diff?cvsroot=lvm2&r1=1.9&r2=1.10 --- LVM2/libdm/libdm-config.c 2011/09/25 19:40:29 1.9 +++ LVM2/libdm/libdm-config.c 2011/09/25 19:41:27 1.10 @@ -557,7 +557,7 @@ if (!(n = _section(p))) return_NULL; - if (!root->child) + if (!l) root->child = n; else l->sib = n;