From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Blake Subject: Re: [Qemu-devel] [PATCH 3/3] Target-ppc: Remove unnecessary variable Date: Sat, 26 Sep 2015 10:15:29 -0600 Message-ID: <5606C4A1.60509@redhat.com> References: <1443170278-9318-1-git-send-email-shraddha.6596@gmail.com> <1443170278-9318-3-git-send-email-shraddha.6596@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="EuoraqkL6ibUvVDmOciV2opmg4guD8Orm" Cc: Paolo Bonzini , qemu-devel To: Shraddha Barke , kvm@vger.kernel.org, qemu-trivial@nongnu.org, Michael Tokarev Return-path: Received: from mx1.redhat.com ([209.132.183.28]:54672 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752058AbbIZQPk (ORCPT ); Sat, 26 Sep 2015 12:15:40 -0400 In-Reply-To: <1443170278-9318-3-git-send-email-shraddha.6596@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --EuoraqkL6ibUvVDmOciV2opmg4guD8Orm Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 09/25/2015 02:37 AM, Shraddha Barke wrote: > Compress lines and remove the variable. >=20 > +++ b/target-ppc/kvm.c > @@ -1782,8 +1782,7 @@ uint32_t kvmppc_get_tbfreq(void) > =20 > ns++; > =20 > - retval =3D atoi(ns); > - return retval; > + return atoi(ns); atoi() is lousy; it cannot properly detect user input errors. This should probably be converted to use the appropriate qemu_strtol variant instead. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --EuoraqkL6ibUvVDmOciV2opmg4guD8Orm Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJWBsSmAAoJEKeha0olJ0NqhKAH/2yu7OdT83+/AGDc95MwT2Lp hif8cllpZR0ILRezGDwQp++/B3XnSwXxvGlMLXvNh9uXVRKiFkbGEdOViq1vva2j RW5rrvz0syRo+O1fNZ32pad4zuSdASP2HNq4e/xm8Z4aYNLvNlmyvnlRfdPaVIqL wM+VCOuX+SHa1jNG9QdSxCJUNfwWlRqNYbhOWBTj6bvaV0+dsb+VQygmtabzfrIT UpnTNnZJCWI61O+bekSWoSDpCRGkpjc/putLiYAdCFCF3h+EmabkNOpslabB9dOl y6f+bmwBIWV/iIDLNDGDyp6g2IMgrGDJG3kTdnK3vN30a0sqlwvN+cSC6afI18Q= =iT3e -----END PGP SIGNATURE----- --EuoraqkL6ibUvVDmOciV2opmg4guD8Orm--