Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262587AbVDAClo (ORCPT ); Thu, 31 Mar 2005 21:41:44 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262578AbVDAClo (ORCPT ); Thu, 31 Mar 2005 21:41:44 -0500 Received: from imf21aec.mail.bellsouth.net ([205.152.59.69]:33016 "EHLO imf21aec.mail.bellsouth.net") by vger.kernel.org with ESMTP id S262353AbVDACll (ORCPT ); Thu, 31 Mar 2005 21:41:41 -0500 Date: Thu, 31 Mar 2005 20:41:35 -0600 From: Tommy Reynolds To: linux-kernel@vger.kernel.org Subject: Re: connector.c Message-Id: <20050331204135.30270c78.Tommy.Reynolds@MegaCoder.com> In-Reply-To: <20050331173026.3de81a05.akpm@osdl.org> References: <20050331173026.3de81a05.akpm@osdl.org> X-Mailer: Sylpheed version 1.9.7+svn (GTK+ 2.6.4; i686-redhat-linux-gnu) X-Face: Nr)Jjr, spake thus: > > if (uskb) { > > netlink_unicast(dev->nls, uskb, 0, 0); > > } >=20 > Unneeded {} Speaking strictly as a language lawyer, they are not needed. However, for maintainability (and best practices) they are essential. They make the scope of the test explicit and ensure that a one-line- change really doesn't affect more lines that needed. Think context diffs here. Cheers! --Signature=_Thu__31_Mar_2005_20_41_35_-0600_/7lnhR5p8dszPb8W Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFCTLTk/0ydqkQDlQERAodbAKCsrOz9i13WCMlYu+G78hTFagZ7bACfUqvw khJ2wA4F4aiqQnukIvE2lDw= =/uO2 -----END PGP SIGNATURE----- --Signature=_Thu__31_Mar_2005_20_41_35_-0600_/7lnhR5p8dszPb8W-- - 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/