From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [92.198.50.35]) by ozlabs.org (Postfix) with ESMTP id B6315B7093 for ; Tue, 17 Nov 2009 05:44:23 +1100 (EST) Date: Mon, 16 Nov 2009 19:44:16 +0100 From: Wolfram Sang To: Grant Likely Subject: Re: [PATCH] net/can: add driver for mscan family & mpc52xx_mscan Message-ID: <20091116184416.GA21491@pengutronix.de> References: <1258128892-28800-1-git-send-email-w.sang@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7JfCtLOvnd9MIVvH" In-Reply-To: Cc: socketcan-core@lists.berlios.de, netdev@vger.kernel.org, David Miller , linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --7JfCtLOvnd9MIVvH Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Grant, Wolfgang commented on some points already, I will pick up the other remarks, just one question: > > + =A0 =A0 =A0 clk_src =3D of_get_property(np, "fsl,mscan-clk-src", NULL= ); > > + =A0 =A0 =A0 if (clk_src && strcmp(clk_src, "ip") =3D=3D 0) >=20 > Should protect against non-null. strncmp() maybe? "ip" is null-terminated, or what do you mean? --=20 Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ | --7JfCtLOvnd9MIVvH Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAksBnYAACgkQD27XaX1/VRsMsACeM/nHKEPAcSgJm1Sf8GJCBJNH ZfsAoI4nFj8M+aEq6Ge5oedSn+YlBMBt =mI3e -----END PGP SIGNATURE----- --7JfCtLOvnd9MIVvH--