From patchwork Mon Jan 11 16:19:30 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: heinzm@sourceware.org X-Patchwork-Id: 72150 Received: from mx01.util.phx2.redhat.com (mx1-phx2.redhat.com [209.132.183.26]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o0BGP5N6016298 for ; Mon, 11 Jan 2010 16:25:05 GMT Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx01.util.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o0BGJmmE018130; Mon, 11 Jan 2010 11:19:50 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o0BGJlq2025267 for ; Mon, 11 Jan 2010 11:19:47 -0500 Received: from mx1.redhat.com (ext-mx01.extmail.prod.ext.phx2.redhat.com [10.5.110.5]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o0BGJgAF028517 for ; Mon, 11 Jan 2010 11:19:42 -0500 Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by mx1.redhat.com (8.13.8/8.13.8) with SMTP id o0BGJUN8010140 for ; Mon, 11 Jan 2010 11:19:30 -0500 Received: (qmail 24054 invoked by uid 9450); 11 Jan 2010 16:19:30 -0000 Date: 11 Jan 2010 16:19:30 -0000 Message-ID: <20100111161930.24052.qmail@sourceware.org> From: heinzm@sourceware.org To: dm-cvs@sourceware.org, dm-devel@redhat.com X-RedHat-Spam-Score: -1.455 (AWL) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-Scanned-By: MIMEDefang 2.67 on 10.5.110.5 X-loop: dm-devel@redhat.com Subject: [dm-devel] dmraid/lib/misc file.c X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk Reply-To: device-mapper development List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com --- dmraid/lib/misc/file.c 2008/06/20 21:52:18 1.3 +++ dmraid/lib/misc/file.c 2010/01/11 16:19:29 1.4 @@ -32,7 +32,6 @@ } while (s); dbg_free(orig); - return ret; } @@ -62,9 +61,9 @@ ssize_t(*func) (); const char *what; } rw_spec[] = { - { - read, "read"}, { - write, "writ"},}, *rw = rw_spec + ((flags & O_WRONLY) ? 1 : 0); + { read, "read"}, + { write, "writ"}, + }, *rw = rw_spec + ((flags & O_WRONLY) ? 1 : 0); if ((fd = open(path, flags, lc->mode)) == -1) LOG_ERR(lc, 0, "opening \"%s\"", path); @@ -84,7 +83,6 @@ ret = 1; close(fd); - return ret; }