Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mdhpp-0007D2-8L for qemu-devel@nongnu.org; Wed, 19 Aug 2009 05:52:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mdhpj-0007Ae-UO for qemu-devel@nongnu.org; Wed, 19 Aug 2009 05:52:00 -0400 Received: from [199.232.76.173] (port=43697 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mdhpj-0007AQ-9T for qemu-devel@nongnu.org; Wed, 19 Aug 2009 05:51:55 -0400 Received: from [66.187.237.31] (port=36915 helo=mx2.redhat.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mdhpi-0002Lw-Pl for qemu-devel@nongnu.org; Wed, 19 Aug 2009 05:51:55 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n7J9prlV015354 for ; Wed, 19 Aug 2009 05:51:53 -0400 From: Juan Quintela In-Reply-To: <1250611607-2441-2-git-send-email-kraxel@redhat.com> (Gerd Hoffmann's message of "Tue, 18 Aug 2009 18:06:40 +0200") Date: Wed, 19 Aug 2009 11:49:39 +0200 Message-ID: References: <1250611607-2441-1-git-send-email-kraxel@redhat.com> <1250611607-2441-2-git-send-email-kraxel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] Re: [PATCH 1/8] ide: add IDEBus struct, cleanups List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel@nongnu.org Reviewed-by: Juan Quintela Reply-to: quintela@redhat.com Gerd Hoffmann wrote: > > switch(addr) { > case 0: > break; > case 1: > - ide_clear_hob(ide_if); > + ide_clear_hob(bus); > /* NOTE: data is written to the two drives */ > - ide_if[0].hob_feature = ide_if[0].feature; > - ide_if[1].hob_feature = ide_if[1].feature; > - ide_if[0].feature = val; > - ide_if[1].feature = val; > + bus->ifs[0].hob_feature = bus->ifs[0].feature; > + bus->ifs[1].hob_feature = bus->ifs[1].feature; > + bus->ifs[0].feature = val; > + bus->ifs[1].feature = val; > break; Once that you are here, can you fix the indentantion, please? (rest of this case have this strange indentantion) That is a nitpit, and already exist in previous code.