public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Angelos Oikonomopoulos" <angelos@igalia.com>
To: "Anshuman Khandual" <anshuman.khandual@arm.com>,
	<linux-arm-kernel@lists.infradead.org>
Cc: <catalin.marinas@arm.com>, <will@kernel.org>,
	<linux-kernel@vger.kernel.org>, <kernel-dev@igalia.com>
Subject: Re: [PATCH] arm64: Don't call NULL in do_compat_alignment_fixup
Date: Tue, 01 Apr 2025 10:58:48 +0200	[thread overview]
Message-ID: <D8V6FN8TF5IK.DV6F5X5L61V@igalia.com> (raw)
In-Reply-To: <c5d835bc-883d-449f-afd3-16a09e418e1b@arm.com>

On Tue Apr 1, 2025 at 10:22 AM CEST, Anshuman Khandual wrote:
> Makes sense. A small nit - just wondering if the following restructuring
> here would make things bit more readable ? Regardless, your decision.
>
> 	if (handler)
>         	type = handler(addr, instr, regs);
>         else
>                 return 1;

I went with the original formulation since -- to my mind at least -- an
"early exit" idiom feels more appropriate for something we found we
can't handle. Could work either way though.

Thanks,
Angelos


  reply	other threads:[~2025-04-01  8:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-31  8:54 [PATCH] arm64: Don't call NULL in do_compat_alignment_fixup Angelos Oikonomopoulos
2025-04-01  6:05 ` Anshuman Khandual
2025-04-01  6:58   ` Angelos Oikonomopoulos
2025-04-01  7:47     ` Anshuman Khandual
2025-04-01  8:09       ` Angelos Oikonomopoulos
2025-04-01  8:22         ` Anshuman Khandual
2025-04-01  8:58           ` Angelos Oikonomopoulos [this message]
2025-04-04 13:58             ` Will Deacon
  -- strict thread matches above, loose matches on Subject: below --
2025-03-26 13:35 Angelos Oikonomopoulos
2025-03-28 19:06 ` Catalin Marinas
2025-03-31  7:57   ` Angelos Oikonomopoulos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=D8V6FN8TF5IK.DV6F5X5L61V@igalia.com \
    --to=angelos@igalia.com \
    --cc=anshuman.khandual@arm.com \
    --cc=catalin.marinas@arm.com \
    --cc=kernel-dev@igalia.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox