Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp87781pxf; Wed, 10 Mar 2021 00:52:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJzer4FQ5NeBnabEE03RZ08ixyftSktmYgYr8qV+F9hz2iZ5Q3Dye6hurVh5rocZ8Jjk/ghN X-Received: by 2002:a50:f391:: with SMTP id g17mr2085448edm.26.1615366334042; Wed, 10 Mar 2021 00:52:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615366334; cv=none; d=google.com; s=arc-20160816; b=kBwvHumS6xoK4W4OmcHDVCvo0EEgFFyRl5+wHNEpo9ZQT+xojroLYQ2BtqMMPyH/SE JAUaaItnrLCp7RLf5haQVehP+o8sHT/Z6CM0vDp7lGzyFZch+YuiBWexZd+EiULy3/JX YQDUVF/n8LeEvq6jW3nQ1TyVq7qXTN+Xqq/heDxIMo3buCC0uOKAuP0p+KzDG0L/puh7 BlFGWaZNrsNEATSq07vesil5l5tRvt/KSx7sVdnGrLqkoBfOGaUGxTC4C3t/80MKSCP1 91A8LAln6k+JT2PUM0NIRfSLRAjAZVlzNROAcaWN5clanTyErdVkQ4lF9pvSKb8Wxyt2 Z81Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=1oylX4+ZKL9CkHaLo8stpudEN0rfdDweGcjmmuIZtT4=; b=gC3yOkutsDkMQszw5bX5KLObk2i9mYZFQq29PqM4PAps79EB3Spno2AgAcrlzYBELa jhBGGpjvxKQr3BZFw23zvy+N3No8s40uuZW8Ei9mv45j8ji8YQlP4K3I0kR4HdQa43fa g/cjmocjxzmDc1tqhF0elIVZQj+yDArI/z8l6dPL4wH43mBA+JkJT3/ZXcUWW2r8Hn2b 2772ED1xLJmK/f2au/TqNctuBQIQerXv/a2K/JxIlVaC4bp8j1p2K2Y4z2yq6Z+a7thi DCCK6In/a6oc0iCZP6mVYd0XZnnoqH0gF5iar9yWxoaailo737TnTWMP1E1Fpy6bi+o9 dJPA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lg14si10872741ejb.6.2021.03.10.00.51.50; Wed, 10 Mar 2021 00:52:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230466AbhCJIuy (ORCPT + 99 others); Wed, 10 Mar 2021 03:50:54 -0500 Received: from out30-131.freemail.mail.aliyun.com ([115.124.30.131]:36750 "EHLO out30-131.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229544AbhCJIuX (ORCPT ); Wed, 10 Mar 2021 03:50:23 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R681e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04420;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=3;SR=0;TI=SMTPD_---0URGJwvU_1615366220; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0URGJwvU_1615366220) by smtp.aliyun-inc.com(127.0.0.1); Wed, 10 Mar 2021 16:50:21 +0800 From: Yang Li To: monstr@monstr.eu Cc: linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH] microblaze: remove unneeded variable 'err' Date: Wed, 10 Mar 2021 16:50:18 +0800 Message-Id: <1615366218-7634-1-git-send-email-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warning: ./arch/microblaze/kernel/signal.c:60:14-17: Unneeded variable: "err". Return "0" on line 78 Reported-by: Abaci Robot Signed-off-by: Yang Li --- arch/microblaze/kernel/signal.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/microblaze/kernel/signal.c b/arch/microblaze/kernel/signal.c index fc61eb0..c4b7b30 100644 --- a/arch/microblaze/kernel/signal.c +++ b/arch/microblaze/kernel/signal.c @@ -57,8 +57,6 @@ struct rt_sigframe { static int restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc, int *rval_p) { - unsigned int err = 0; - #define COPY(x) {err |= __get_user(regs->x, &sc->regs.x); } COPY(r0); COPY(r1); @@ -75,7 +73,7 @@ static int restore_sigcontext(struct pt_regs *regs, *rval_p = regs->r3; - return err; + return 0; } asmlinkage long sys_rt_sigreturn(struct pt_regs *regs) -- 1.8.3.1