Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752628AbbGMSsr (ORCPT ); Mon, 13 Jul 2015 14:48:47 -0400 Received: from mout.gmx.net ([212.227.17.22]:64163 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751115AbbGMSsp (ORCPT ); Mon, 13 Jul 2015 14:48:45 -0400 Message-ID: <55A40800.1080805@gmx.de> Date: Mon, 13 Jul 2015 20:48:32 +0200 From: Hartmut Knaack User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0 SeaMonkey/2.33.1 MIME-Version: 1.0 To: Cristina Opriceana , jic23@kernel.org CC: lars@metafoo.de, pmeerw@pmeerw.net, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, daniel.baluta@intel.com, octavian.purdila@intel.com Subject: Re: [PATCH 2/3] tools: iio: Remove unnecessary braces References: <45661e14b247cebfc130518e0c1c44fcec339f0d.1436789446.git.cristina.opriceana@gmail.com> In-Reply-To: <45661e14b247cebfc130518e0c1c44fcec339f0d.1436789446.git.cristina.opriceana@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:BjbPEsotlWoXNaxhcLRMxt1rYXsOAIwZDhLhHL2t/J9iRIVpyfM pRf1qcNHr20Ian7uHa6ROehjfzRS7pZsugl3/h+d+NGhtjDwhrTmgXPGANb1UR10W42j0jz Ztf2vMi37OOkaPCoK2vbT8tn2xmf+L2iZ+Xu6y0creP3PDLv2GViKQSvk2xXrlrhw4HU3Lr zwSH1MTVcEvG4z9vJdqNg== X-UI-Out-Filterresults: notjunk:1;V01:K0:4oInlpBkzTo=:6hryLACXBlGZASRFw97S2C 7WlkS2WskQGDArSgoaShPITJIKBKKTnv0DLYfpt0Cbh+4XXjMjZu5fAJFSP4/3W1XvCHgnXCV WELqx2wAtYrOKF4TFRfXl0HgEwEiQxtCs3YmhdL58V8g3oyBP/hWUs1WYKl0T3PAVaNVP2Yth qbrQnf95Lv1AXqc3kXJzlkp5ogiwMvPcWrBSBRhynZ3KGT8akFIRuhs3F66yoQNkC/1gDXPJg j3b1L8SRUro6SxQq1EVZuycTRUVOwxGsLmZBwR0fhqkVbxb3ttEs3AGxsCsLC2ePx0LgquYjS eLfzEhLENBDt8UY84JmOhO1elurIvI11kfT902rXm+XU+4P9oKTiqE9xeDbUnH/cFaGwPkvbr e2bb1xSTiu9LCSdAgyFbPuAt/w0MZQcGUbDCCc5IyT4rK6OJaFNCDZjlhasMjHEeX+F2q+M4c 0XqXkSj4ze+V25G+vLq3FYH3VlbnkPzUhMxq728kQ4ohr9I4LWlcj1o9hSx0uH9ZYgIwPTDBh RX2/DoNx487hAViBGX5u1p7X0bVX9yT/T2OdgFPLH+rwZtWxj96Fg5ptas7tZdIpNaGPRhJg/ xPkgj0lNR1Hg0H8QEPZf4dMyG4TfOKu426xEhRBFoeoXRwg7C1C+IesLP3vtPYjE1tZalsxNE NCQ/pW4ibh2gtg/qlxmF/o8nrsZ77s9A060348dt8Y1I8VTmT15Ltk+oXh2xlFYP8mJI= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1222 Lines: 35 Cristina Opriceana schrieb am 13.07.2015 um 15:17: > Single statement blocks don’t need braces. > Found with checkpatch.pl. > > Signed-off-by: Cristina Opriceana Acked-by: Hartmut Knaack > --- Oops, that slipped through my hands. Thanks for taking care of this. > tools/iio/iio_event_monitor.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/tools/iio/iio_event_monitor.c b/tools/iio/iio_event_monitor.c > index 703f4cb..9ee1959 100644 > --- a/tools/iio/iio_event_monitor.c > +++ b/tools/iio/iio_event_monitor.c > @@ -262,9 +262,8 @@ int main(int argc, char **argv) > printf("Found IIO device with name %s with device number %d\n", > device_name, dev_num); > ret =sprintf(&chrdev_name, "/dev/iio:device%d", dev_num); > - if (ret < 0) { > + if (ret < 0) > return -ENOMEM; > - } > } else { > /* > * If we can't find an IIO device by name assume device_name is > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/