* unused assignment in kvm_setup_pio()
@ 2007-07-30 13:52 Laurent Vivier
[not found] ` <46ADED39.3040506-6ktuUTfB/bM@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Laurent Vivier @ 2007-07-30 13:52 UTC (permalink / raw)
To: kvm-devel
[-- Attachment #1.1: Type: text/plain, Size: 531 bytes --]
I think line 1809 of kvm_main.c (from git) is useless, isn't it ???
1809 now = min(count, PAGE_SIZE / size);
1810
1811 if (!down)
1812 in_page = PAGE_SIZE - offset_in_page(address);
1813 else
1814 in_page = offset_in_page(address) + size;
1815 now = min(count, (unsigned long)in_page / size);
1816 if (!now) {
LAurent
--
------------- Laurent.Vivier-6ktuUTfB/bM@public.gmane.org --------------
"Software is hard" - Donald Knuth
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 315 bytes --]
-------------------------------------------------------------------------
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/
[-- Attachment #3: Type: text/plain, Size: 186 bytes --]
_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel
^ permalink raw reply [flat|nested] 4+ messages in thread[parent not found: <46ADED39.3040506-6ktuUTfB/bM@public.gmane.org>]
* Re: unused assignment in kvm_setup_pio() [not found] ` <46ADED39.3040506-6ktuUTfB/bM@public.gmane.org> @ 2007-07-30 13:57 ` Avi Kivity [not found] ` <46ADEE4F.2030306-atKUWr5tajBWk0Htik3J/w@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Avi Kivity @ 2007-07-30 13:57 UTC (permalink / raw) To: Laurent Vivier; +Cc: kvm-devel Laurent Vivier wrote: > I think line 1809 of kvm_main.c (from git) is useless, isn't it ??? > > 1809 now = min(count, PAGE_SIZE / size); > 1810 > 1811 if (!down) > 1812 in_page = PAGE_SIZE - offset_in_page(address); > 1813 else > 1814 in_page = offset_in_page(address) + size; > 1815 now = min(count, (unsigned long)in_page / size); > 1816 if (!now) { > > Yes. I hate that code. -- error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- 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/ ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <46ADEE4F.2030306-atKUWr5tajBWk0Htik3J/w@public.gmane.org>]
* [PATCH] remove duplicate assignment in kvm_setup_pio() [not found] ` <46ADEE4F.2030306-atKUWr5tajBWk0Htik3J/w@public.gmane.org> @ 2007-08-01 12:39 ` Laurent Vivier [not found] ` <46B07F1B.30202-6ktuUTfB/bM@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Laurent Vivier @ 2007-08-01 12:39 UTC (permalink / raw) To: kvm-devel [-- Attachment #1.1.1: Type: text/plain, Size: 600 bytes --] Line 1809 of kvm_main.c is useless, value is overwritten in line 1815: 1809 now = min(count, PAGE_SIZE / size); 1810 1811 if (!down) 1812 in_page = PAGE_SIZE - offset_in_page(address); 1813 else 1814 in_page = offset_in_page(address) + size; 1815 now = min(count, (unsigned long)in_page / size); 1816 if (!now) { Signed-off-by: Laurent Vivier <Laurent.Vivier-6ktuUTfB/bM@public.gmane.org> -- ------------- Laurent.Vivier-6ktuUTfB/bM@public.gmane.org -------------- "Software is hard" - Donald Knuth [-- Attachment #1.1.2: remove_now --] [-- Type: text/plain, Size: 405 bytes --] Index: kvm/drivers/kvm/kvm_main.c =================================================================== --- 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; } - now = min(count, PAGE_SIZE / size); - if (!down) in_page = PAGE_SIZE - offset_in_page(address); else [-- Attachment #1.2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 189 bytes --] [-- Attachment #2: Type: text/plain, Size: 315 bytes --] ------------------------------------------------------------------------- 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/ [-- Attachment #3: Type: text/plain, Size: 186 bytes --] _______________________________________________ kvm-devel mailing list kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/kvm-devel ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <46B07F1B.30202-6ktuUTfB/bM@public.gmane.org>]
* Re: [PATCH] remove duplicate assignment in kvm_setup_pio() [not found] ` <46B07F1B.30202-6ktuUTfB/bM@public.gmane.org> @ 2007-08-01 18:51 ` Avi Kivity 0 siblings, 0 replies; 4+ messages in thread From: Avi Kivity @ 2007-08-01 18:51 UTC (permalink / raw) To: Laurent Vivier; +Cc: kvm-devel Laurent Vivier wrote: > Line 1809 of kvm_main.c is useless, value is overwritten in line 1815: > Applied, thanks. -- error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- 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/ ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-08-01 18:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-30 13:52 unused assignment in kvm_setup_pio() Laurent Vivier
[not found] ` <46ADED39.3040506-6ktuUTfB/bM@public.gmane.org>
2007-07-30 13:57 ` Avi Kivity
[not found] ` <46ADEE4F.2030306-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-08-01 12:39 ` [PATCH] remove duplicate " Laurent Vivier
[not found] ` <46B07F1B.30202-6ktuUTfB/bM@public.gmane.org>
2007-08-01 18:51 ` Avi Kivity
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox