From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from stravinsky.debian.org (stravinsky.debian.org [82.195.75.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 91CAB43CEC3 for ; Wed, 3 Jun 2026 09:32:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=82.195.75.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780479145; cv=none; b=g6O516wKCsRiOtCWDtQFVFEK1x965+BShHUHBeyMwe8trYqkNTXFF7uxsQm9VZI/6x4Xe+jzD+AQTRZvsCAYGTEUDF9vVTCblfoZCQNer/+XQ2bfI1C3gyLgjS35wchQdm3gZyt5zrl/zV2vGV/9Qhdp6JvVSe2kkV0+yo9iqjs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780479145; c=relaxed/simple; bh=X94XKL1vxDYlS0phnFGj7jyh8XTtYe+/TOGZYTbsw4g=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=e+ptiMxNg9X3Gcud+sgHQpgKDF28u5+A9uEOg/48NUDPnKuWu4J05G4Nc4WCZCsFIw/WAyK13lpY1OjLkSrPRqMn5ccugACYKgyP7BO6ahMIQYeUh5hrlPTzKy3CumUARNx5BUpy9nR5lD5Zg7mSA/rZ2ZM1JBA1MusVAEAf3rw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=debian.org; spf=pass smtp.mailfrom=debian.org; dkim=pass (2048-bit key) header.d=debian.org header.i=@debian.org header.b=A1+/9wBu; arc=none smtp.client-ip=82.195.75.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=debian.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=debian.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=debian.org header.i=@debian.org header.b="A1+/9wBu" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; s=smtpauto.stravinsky; h=X-Debian-User:In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=keRhHM2IsRAj6zneQ+S+XT69Crthh2nKndB1LnDS7Ss=; b=A1+/9wBu7U1itUj3DW4wTOC9dI AZAMJEbcHNR5wx4g5a6s80aCCZn5JwM48kycWqgQjuQ4bnZfEnaUJ4pBOu8rB1kQXylniI9xzMvjw mm7WiiIy1ZaHoHRH8LICjgsrR7TSykv0GMS87ikynJtcjfFrw4BbDS7pHA8qtjpgVGItAxPn1cMXE 2RZEa+Lij4FBZiJd4wKxGhNXpyBXD9l//8rdZ+czQ8lOTwR/GlCdKgmU/73heQi1prCB4d2aPjLrh j4bv2RKPgXx/0zRw3tITWqiYVvecNjRrtI4sVqMiOSelebFz/I2gbs6G6jKKKTrlRnuqfvS3mpbCJ 72O+gVYw==; Received: from authenticated-user by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1wUhxF-003dMM-0D; Wed, 03 Jun 2026 09:32:05 +0000 Date: Wed, 3 Jun 2026 02:31:54 -0700 From: Breno Leitao To: Thorsten Blum Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Andrew Morton , Pasha Tatashin , Alexander Graf , Baoquan He , Song Shuai , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RESEND] riscv: kexec: use min to simplify riscv_kexec_elf_load Message-ID: References: <20260602224725.1088385-3-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260602224725.1088385-3-thorsten.blum@linux.dev> X-Debian-User: leitao On Wed, Jun 03, 2026 at 12:47:22AM +0200, Thorsten Blum wrote: > Use min() to replace the open-coded version and assign the result > directly to kbuf.bufsz. Drop the now-unused local size variable. > > Signed-off-by: Thorsten Blum Reviewed-by: Breno Leitao