Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp652103pxu; Tue, 1 Dec 2020 23:09:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJy1x5VZv6y2NSVBG63Zd4GL1ekxaWnh8ckFPsmaLghHt//dxLhvsauMcGLaJin9DOliu+Ep X-Received: by 2002:a17:906:4058:: with SMTP id y24mr969046ejj.245.1606892945582; Tue, 01 Dec 2020 23:09:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606892945; cv=none; d=google.com; s=arc-20160816; b=wNyqvkoRe8nIN5VHTAihMLU4PgMwjDxr0+MBVtU45+nFHtGPw48BEUwycj9xTIFMEz nc6CRyBG4zJvl6dJVvbrcRBqHG8e728e1BM5KpeuSSkHO+fHX0bXLHTua/I8W9K35Owr V0f6vEtCQps0YAaFqoqOxw4KAcQAaO4Xf527eMXYGEGD6sOFaFgeYq1gl72ypQ11Pw5V a3w8FYIqo5YsrHJXD7qZR8BFioATxWtWzkZSFozseWKfe2TafNXo6jGYkjJSsZDufxXS uPXwTZRy8L7djzU+Zu7lSv8hyGlJseF1oCH7GNKH90ttDyyeCXNU0K7DdcY5cfHSqY0G IVTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=bDEuBbvyO4m/aOrUkaJX+zPA0wyOJV04lKgxRyULzKk=; b=B8ibr+D2e0wTI+1K7t40cQu58VXD15v80EFvaqKnzGt3/QPJYmG0rPoSVbmkwoU6q+ 0kKMNmTO2KMqdR8uFzhaJ4D/0/USnrN2SiooLQz14vGJT7/RipI9pqq4EsiSiuQ/UiFM hJOzAWTgZS5N/XDYGcm7LtK0L8V9QAQJm8DI4YYgRp7TPB/o6UshZN2RPmdXfAQUGBbM 61d6FNDAVGSTNWBtOOlX/1CH4BeWOsNsHFNQQujcyYvrMzvkTogC3Vnw22OIZ2ZcWi2h sj5dDip4Cr/mAWqC0B5sBu4PKAOjSYH6HC5kn9m4eaFOMUvxkxxARD3YPdpuoyTCdjwp BRMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A6BUjlpp; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id wn12si362358ejb.43.2020.12.01.23.08.42; Tue, 01 Dec 2020 23:09:05 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A6BUjlpp; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387511AbgLBHDy (ORCPT + 99 others); Wed, 2 Dec 2020 02:03:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728039AbgLBHDy (ORCPT ); Wed, 2 Dec 2020 02:03:54 -0500 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93F49C0613D4; Tue, 1 Dec 2020 23:03:13 -0800 (PST) Received: by mail-wm1-x343.google.com with SMTP id e25so4170446wme.0; Tue, 01 Dec 2020 23:03:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bDEuBbvyO4m/aOrUkaJX+zPA0wyOJV04lKgxRyULzKk=; b=A6BUjlpprQbeCgO38tGePMxU/Z1DUnKDpLCzWSzeQ0RGCJdGE/3r5PvCnFphFaQ2xh tDCvBR746a2dKj2EAxnxREr3JcK8TxI5yNCyl3OZCh55A1FIF0uFzelAP12Ac9/kvJlE /L6GyTDevzH1wgU556itNQNzn4aVf3MKDRQlXz9B3JO2OETcFPNRd6HtB8R6XJqz77Ju fcFRTXHncSbhfYQWAXvw1F0iGHVLc0Ya6SE8zLDusdLVJ1yqL6mUVLQ2W67jD/RNNsX+ NIddsi04HxMAhXdADHvRU8MaPlTY/u+y3KD6Bkvj1PyP48dKYl2cM1ba2EBVeU0PubKG RrVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bDEuBbvyO4m/aOrUkaJX+zPA0wyOJV04lKgxRyULzKk=; b=rjBo2L26ZbyKwlNsEFTMnP39H94BQLFovj6bwKLfdA50hBJ6Bix7lx0WdN/6EzvL4U XaAYkN5lArXOm73CYEKn4EggDFhT+sZYtO2HDwS3nkHefnj7opSiqwRgKRE3zFbQuZbL rWllbMkBKeofC4/dh1yDLvH8K4JSUC32Y/LAguW83FEv3PEMps2GM/S5QmLM3TctrfJO cpKzv5rSmXX1X0CMtCXeNAC7iu1Hc3BMDryhWYMwmyzAIdWyzAGz8EWomZKXf5b1dSLh X1rZxpTALItyFF7Gdd8gG+Kq/03dJYj27NLkNqkbDNHiaYjE4FWFHd/CUz0xSFdiQWpd Z6vg== X-Gm-Message-State: AOAM530rU+T3TpGr2GkH+9nYeLzibndI2AnwIQSnFnBMDx+nx3KjFLve +IIwpK0SrLMjfFselQHkLtpdrnEfYopLSoMnABY= X-Received: by 2002:a05:600c:21ce:: with SMTP id x14mr1446848wmj.27.1606892592410; Tue, 01 Dec 2020 23:03:12 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Sunil Kovvuri Date: Wed, 2 Dec 2020 12:33:00 +0530 Message-ID: Subject: Re: [PATCH net-next] octeontx2-af: debugfs: delete dead code To: Dan Carpenter Cc: Sunil Goutham , Linu Cherian , Geetha sowjanya , Jerin Jacob , "David S. Miller" , Jakub Kicinski , Linux Netdev List , LKML , kernel-janitors@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 2, 2020 at 12:28 PM Dan Carpenter wrote: > > These debugfs never return NULL so all this code will never be run. > > In the normal case, (and in this case particularly), the debugfs > functions are not supposed to be checked for errors so all this error > checking code can be safely deleted. > > Signed-off-by: Dan Carpenter > --- Thanks for the changes.