mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sergey Shtylyov <s.shtylyov@omp.ru>
To: Oleg Nesterov <oleg@redhat.com>, Vineet Gupta <vgupta@kernel.org>,
	<linux-snps-arc@lists.infradead.org>,
	<linux-kernel@vger.kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Subject: [PATCH 01/13] arc: ptrace: user_regset_copyin_ignore() always returns 0
Date: Sat, 15 Oct 2022 00:22:23 +0300	[thread overview]
Message-ID: <20221014212235.10770-2-s.shtylyov@omp.ru> (raw)
In-Reply-To: <20221014212235.10770-1-s.shtylyov@omp.ru>

user_regset_copyin_ignore() always returns 0, so checking its result seems
pointless -- don't do this anymore...

Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
---
 arch/arc/kernel/ptrace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arc/kernel/ptrace.c b/arch/arc/kernel/ptrace.c
index da7542cea0d8..2abdcd9b09e8 100644
--- a/arch/arc/kernel/ptrace.c
+++ b/arch/arc/kernel/ptrace.c
@@ -185,7 +185,7 @@ static int genregs_set(struct task_struct *target,
 
 #define REG_IGNORE_ONE(LOC)		\
 	if (!ret)			\
-		ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, \
+		user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, \
 			offsetof(struct user_regs_struct, LOC), \
 			offsetof(struct user_regs_struct, LOC) + 4);
 
-- 
2.26.3


  reply	other threads:[~2022-10-14 21:23 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-14 21:22 [PATCH 00/13] Make user_regset_copyin_ignore() *void* Sergey Shtylyov
2022-10-14 21:22 ` Sergey Shtylyov [this message]
2022-10-14 21:22 ` [PATCH 02/13] arm: ptrace: user_regset_copyin_ignore() always returns 0 Sergey Shtylyov
2022-10-14 21:22 ` [PATCH 03/13] arm64: " Sergey Shtylyov
2022-11-09 11:20   ` Catalin Marinas
2022-10-14 21:22 ` [PATCH 04/13] hexagon: " Sergey Shtylyov
2022-10-14 21:22 ` [PATCH 05/13] ia64: " Sergey Shtylyov
2022-10-14 21:22 ` [PATCH 06/13] mips: " Sergey Shtylyov
2022-10-18  8:35   ` Philippe Mathieu-Daudé
2022-10-14 21:22 ` [PATCH 07/13] nios2: " Sergey Shtylyov
2022-10-14 21:22 ` [PATCH 08/13] openrisc: " Sergey Shtylyov
2022-10-14 21:22 ` [PATCH 09/13] parisc: " Sergey Shtylyov
2022-10-14 21:22 ` [PATCH 10/13] powerpc: " Sergey Shtylyov
2022-10-14 21:22 ` [PATCH 11/13] sh: " Sergey Shtylyov
2022-10-14 21:22 ` [PATCH 12/13] sparc: " Sergey Shtylyov
2022-10-14 21:22 ` [PATCH 13/13] regset: make user_regset_copyin_ignore() *void* Sergey Shtylyov

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=20221014212235.10770-2-s.shtylyov@omp.ru \
    --to=s.shtylyov@omp.ru \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-snps-arc@lists.infradead.org \
    --cc=oleg@redhat.com \
    --cc=vgupta@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

all inboxes | Powered by JetHome®