From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laurent Vivier Subject: [PATCH] remove duplicate assignment in kvm_setup_pio() Date: Wed, 01 Aug 2007 14:39:55 +0200 Message-ID: <46B07F1B.30202@bull.net> References: <46ADED39.3040506@bull.net> <46ADEE4F.2030306@qumranet.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0765035931==" To: kvm-devel Return-path: In-Reply-To: <46ADEE4F.2030306-atKUWr5tajBWk0Htik3J/w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============0765035931== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig4CD778F815C8A6D13F96F650" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4CD778F815C8A6D13F96F650 Content-Type: multipart/mixed; boundary="------------020101070506090602000107" This is a multi-part message in MIME format. --------------020101070506090602000107 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Line 1809 of kvm_main.c is useless, value is overwritten in line 1815: 1809 now =3D min(count, PAGE_SIZE / size); 1810 1811 if (!down) 1812 in_page =3D PAGE_SIZE - offset_in_page(address); 1813 else 1814 in_page =3D offset_in_page(address) + size; 1815 now =3D min(count, (unsigned long)in_page / size); 1816 if (!now) { Signed-off-by: Laurent Vivier --=20 ------------- Laurent.Vivier-6ktuUTfB/bM@public.gmane.org -------------- "Software is hard" - Donald Knuth --------------020101070506090602000107 Content-Type: text/plain; name="remove_now" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline; filename="remove_now" Index: kvm/drivers/kvm/kvm_main.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kvm.orig/drivers/kvm/kvm_main.c 2007-08-01 14:32:29.000000000 +0200 +++ kvm/drivers/kvm/kvm_main.c 2007-08-01 14:32:49.000000000 +0200 @@ -1805,8 +1805,6 @@ return 1; } =20 - now =3D min(count, PAGE_SIZE / size); - if (!down) in_page =3D PAGE_SIZE - offset_in_page(address); else --------------020101070506090602000107-- --------------enig4CD778F815C8A6D13F96F650 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.7 (GNU/Linux) iD8DBQFGsH8e9Kffa9pFVzwRAo84AJ9A1uE6Xjdvbn9RUgvspgiNHeab+wCfWpeM /Op2lI1y7nIEgRDJxYbPBXI= =ia+o -----END PGP SIGNATURE----- --------------enig4CD778F815C8A6D13F96F650-- --===============0765035931== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ --===============0765035931== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kvm-devel mailing list kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/kvm-devel --===============0765035931==--