From patchwork Thu Feb 22 17:10:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Code AI X-Patchwork-Id: 876776 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=mycode-ai.20150623.gappssmtp.com header.i=@mycode-ai.20150623.gappssmtp.com header.b="Sqvw+m7K"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3znLTh3P49z9sDQ for ; Fri, 23 Feb 2018 04:10:48 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933351AbeBVRKq (ORCPT ); Thu, 22 Feb 2018 12:10:46 -0500 Received: from mail-yw0-f195.google.com ([209.85.161.195]:45634 "EHLO mail-yw0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933148AbeBVRKp (ORCPT ); Thu, 22 Feb 2018 12:10:45 -0500 Received: by mail-yw0-f195.google.com with SMTP id s199so1909372ywg.12 for ; Thu, 22 Feb 2018 09:10:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mycode-ai.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=FWXkc6ZrbDTvLD8XCuzz5UjVp3RI27FF46h6g/ENHSc=; b=Sqvw+m7KNfCOmMEVcRRHUlQ0h0pE1HLNayZ6XDwptPrfaB49LHsBPpPyyIxFjsUlx/ M44ehgYQGqwIVwXNXB4lzrUCxdFY9ys7w8GWPbJyEc/ycKJ2t62irFau3+t642U44uZ8 FpMIit5WLJWrrfiLOKzdw6i7oyXQDRYw2GDZLMD77kfPnqggMxXW7GWL2+vDQylpgOfE ZsGmnStRTnzxEu2gjqVFUaRj/j2qk3g/cwQfC9r3SYdO+fm7DqUXEnuWqdiesggHH1RK xccu/GlJLfmW1MoQupr4S8bhZXQqxqOAe76e1S9pXXvDOpOeVtXgmQguXQMmuTk5LIY2 vuEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=FWXkc6ZrbDTvLD8XCuzz5UjVp3RI27FF46h6g/ENHSc=; b=kAyeueOgUjFDZwyY2rptXBidFLW0rUAhIfvmWwFfU1oVG8hhoVn742QFNZmxHPTTDy KVqqyoGJfmDrIw+c3Iz+DwFehye1KdJv2UTGIdRSQJoYvpg4Z8DNY866Lsn3UAeucKUE AA278E0MgGU/VO0a2ITIxSM4gbfxgsW9c0r5LPnh5q9GlhVdcRw9o6ABRRR1qKYpktzr ktEVac+5mOe31E/FEitf+3jg5i6xj8hPRwo7nZOvYjO6+MISKITeoaBhmvsG4ZxRg5Zj oJy8JErLObsaDFMiaCCA04OSwCSPTqAUEtRVaWdSXeb6cybIcHXZUxp/ORL7YSZYrjjD 9baw== X-Gm-Message-State: APf1xPCPm72FNV/1ljWWcJt5bZ42Rc5YLM0aC0dWTT4P3f5okA8Det5x 96O+V4Ww9NNYrVqV3CAyXaMrd/ONvrQ= X-Google-Smtp-Source: AH8x2245eyCIea6HmQWWa5EGcQhQaeKXYVKR53mg1jM/Qr/nVxXvHKSzUwVUg/wNkAwdMh9S1zw24A== X-Received: by 10.129.163.87 with SMTP id a84mr5165452ywh.8.1519319444743; Thu, 22 Feb 2018 09:10:44 -0800 (PST) Received: from paul-desktop.hsd1.ga.comcast.net (96-87-228-86-static.hfc.comcastbusiness.net. [96.87.228.86]) by smtp.gmail.com with ESMTPSA id i5sm196904ywi.70.2018.02.22.09.10.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 22 Feb 2018 09:10:44 -0800 (PST) From: C0deAi X-Google-Original-From: C0deAi To: davem@davemloft.net, kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, netdev@vger.kernel.org Subject: [PATCH] Remove useless assignment in ip_do_fragment Date: Thu, 22 Feb 2018 12:10:25 -0500 Message-Id: <1519319425-30431-1-git-send-email-benjamin.bales@assrc.us> X-Mailer: git-send-email 2.7.4 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi my name is Benjamin Bales. I am the founder and creator of CodeAI, the first non-human contributor to your software project. CodeAI finds and fixes security defects for you. It fixed 327. It wants to merge a fix for a useless assignment. To view all 327 fixed issues from the run claim your free open source account at mycode.ai and the Dockerfile used to build and run your project in CodeAI, here- https://drive.google.com/drive/folders/1KB9WQQyWQgYccmiSjy2E1JWJ4vWuoLYd . It is always free for open source projects. If you have any questions about these results or have general inquiries about CodeAI, please send an email to techsupport@mycode.ai Signed-off-by: Benjamin Bales --- net/ipv4/ip_output.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c index e8e675b..0e44434 100644 --- a/net/ipv4/ip_output.c +++ b/net/ipv4/ip_output.c @@ -640,7 +640,6 @@ int ip_do_fragment(struct net *net, struct sock *sk, struct sk_buff *skb, /* Everything is OK. Generate! */ - err = 0; offset = 0; frag = skb_shinfo(skb)->frag_list; skb_frag_list_init(skb);