From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 13F3EC32793 for ; Wed, 18 Jan 2023 07:17:07 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pI2gY-0007vy-3L; Wed, 18 Jan 2023 02:16:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pI2gK-0007pX-Bc for qemu-devel@nongnu.org; Wed, 18 Jan 2023 02:16:28 -0500 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pI2g3-00051d-KT for qemu-devel@nongnu.org; Wed, 18 Jan 2023 02:16:09 -0500 Received: by mail-wm1-x330.google.com with SMTP id q10-20020a1cf30a000000b003db0edfdb74so667888wmq.1 for ; Tue, 17 Jan 2023 23:16:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=GwaMcY0o0vxtyWKNdUl2MAkCIcOYHCsBZpRcSthxLGg=; b=Kr80ZUdw9FKJllRMlALtcK2i/k6zjHX9KhiDGh60VenQmRwlM9m6N43fs0osyWWSy6 2vSr+eWfaqPR/93sSMJM3t9SC6Yh1lbjWoMxuz0kaWTTnnzIEQWJ8Z+0MjfXA11PsnLp 9JNEQ7BlhnajkSzCZ2ezyYwrXj01A0cKeHAi5CcSanMbabmx6pUKXQXUWrbEhw+MtQV3 /jKydxr/3rgpYn3qk9ostJV2d4HM/OKaJzJLWemRp1pmhpj77YoOtLB/k3zMtMXH247J 8OZrLuV8qHz9VkmD++UJgV6J/jXVxE6QTbTBZLeT56VOIZiGMyc731dXEr1H+kumMvuI RyYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GwaMcY0o0vxtyWKNdUl2MAkCIcOYHCsBZpRcSthxLGg=; b=zy44Usn09gnn38tm4IgD+Xz1JKpcGxQjK4u8dFa6WHQSw0Py6Eqzr9RbDw7eG5cylZ ZGMuH7tRWkdRMidDpGE9iuPntKOAoPk9pdw2Cpu5PiFWN8XFdv2tzQY2WzfheRmPUOuW M/dksqgwKflHs28OHoHh9ldzlZsHdMwCiZMgEvnw2DX6/OMHxUoAXU51ssdmbQ3ZLiDV XzjM+qfOsl8UJ4fbp5KXQTMdBARipVgtaLNplNgKf843Qy6RjZJ53SL6z92FaCE5KhjM cGCU5OnrNgKycqi1pkoQtBSrVoWZba94iB+Gf63QVPpx3g9XJQZO3kIfmGFwxg4DjKZo hWTA== X-Gm-Message-State: AFqh2koQZnHmz07XfSRs5XgVyQ2HjDqvg7x5U69ls3O9oHVCzQUC8qs2 URoTKccg6JcJc6Is4EO9FB/yfg== X-Google-Smtp-Source: AMrXdXsz+ah5zc20bWawA5saHwOXGYbexteaL2CmP9lzumiaV722x6Zn2/IAcaTkiitEuDT8XvkGCg== X-Received: by 2002:a05:600c:982:b0:3da:f5b5:13ec with SMTP id w2-20020a05600c098200b003daf5b513ecmr5396500wmp.34.1674026162119; Tue, 17 Jan 2023 23:16:02 -0800 (PST) Received: from [192.168.30.216] ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id f20-20020a7bcd14000000b003da28dfdedcsm1334504wmj.5.2023.01.17.23.16.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Jan 2023 23:16:01 -0800 (PST) Message-ID: <94540dd5-69c7-822b-2b67-f5208f37f20f@linaro.org> Date: Wed, 18 Jan 2023 08:16:00 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH 1/4] hw/misc/macio: Avoid some QOM casts Content-Language: en-US To: BALATON Zoltan , qemu-devel@nongnu.org, qemu-ppc@nongnu.org Cc: Mark Cave-Ayland References: <67b2d4700879c3b4cd574f1faa1a0d1950b3d0ee.1674001242.git.balaton@eik.bme.hu> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= In-Reply-To: <67b2d4700879c3b4cd574f1faa1a0d1950b3d0ee.1674001242.git.balaton@eik.bme.hu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=philmd@linaro.org; helo=mail-wm1-x330.google.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.097, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org On 18/1/23 01:32, BALATON Zoltan wrote: > At several places we already have the object pointer with the right > type so we don't need to cast it back and forth. Avoiding these casts > improves readability. > > Signed-off-by: BALATON Zoltan > --- > hw/misc/macio/macio.c | 14 +++++++------- > 1 file changed, 7 insertions(+), 7 deletions(-) Reviewed-by: Philippe Mathieu-Daudé