From patchwork Mon Oct 19 17:38:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 298795 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 865CBC43457 for ; Mon, 19 Oct 2020 17:38:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1813A2225F for ; Mon, 19 Oct 2020 17:38:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="XuRj984d" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728443AbgJSRiz (ORCPT ); Mon, 19 Oct 2020 13:38:55 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:50442 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725887AbgJSRiz (ORCPT ); Mon, 19 Oct 2020 13:38:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603129134; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=bCZfT5E3im0lNOm7GQVPs0SnshcVMlnSl2CIjv8kRzg=; b=XuRj984d4Ni4B4gOQIkJ1fjsDSTQTYC2CJgK7nE/Un8TdX0LAjj5t978iVp5KFJ6zH3o5U 7eEw6N4LFfH6Wus6D6KcDbvrbYSBBGdKcbWc2WE3y+LCg73w1VkTCow7xDD9gFc3LGfahu YOHit4SMBZWQAug5yd3C2gzk0HwQ/vI= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-342-8mZhI0wcNmypsGkt8VtBLw-1; Mon, 19 Oct 2020 13:38:52 -0400 X-MC-Unique: 8mZhI0wcNmypsGkt8VtBLw-1 Received: by mail-qv1-f70.google.com with SMTP id i5so399590qvr.1 for ; Mon, 19 Oct 2020 10:38:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=bCZfT5E3im0lNOm7GQVPs0SnshcVMlnSl2CIjv8kRzg=; b=tUGeF2oodE/Iqw2t1vxIsknrpkxINfEIDqz3eHpQBgDl2rdRP01CkFvwxjOYc+ls2O 61JCx7wZSD/E6Kg2NtdoAeZabyd+ADFGw3Q03v6BKCEQPeRAdcXemhwCRaOIYq2RA6s+ J1w5LpVv4mUatxmOfQXkEmj+TsC1lNrF37RBArQYeDFLbpwueoWe+MSmJa6ZuZgesDxa v0JnW7Eopm1OBAo+KO9H5wNrxXugKwdgv8tHiM7bHGGNtC2K28KMB9dSddyP3bIedu82 Yurtk1iPyNxQRNEh1b/IwoouZxySKzSLFaK7Myl92AH2SYUP0S0+KL/g7oV+yA8rX3Rg sYDQ== X-Gm-Message-State: AOAM533OT2bhgrc/NNUBvbz3kDLVZ0ZEbWF04Vrvd9QlXjrIhfOWviVN j+GwyQhNJJVq+2x1mjejNYT66fhPUyyoHZL5a3eewo1OY8Zq66zK9pzEUupYDNtzikZgLpaHNiO Iq2shWVKvarqEXo1A X-Received: by 2002:ac8:937:: with SMTP id t52mr569996qth.268.1603129132255; Mon, 19 Oct 2020 10:38:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKieAoqgQ8WMfOwsu+ME8feLE9yc+3oESLds+QyAt+bmkqHnhzOFlfz8uddoFFD0ZWch2otg== X-Received: by 2002:ac8:937:: with SMTP id t52mr569971qth.268.1603129132059; Mon, 19 Oct 2020 10:38:52 -0700 (PDT) Received: from trix.remote.csb (075-142-250-213.res.spectrum.com. [75.142.250.213]) by smtp.gmail.com with ESMTPSA id a200sm296706qkb.66.2020.10.19.10.38.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2020 10:38:51 -0700 (PDT) From: trix@redhat.com To: ast@kernel.org, daniel@iogearbox.net, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, andrii@kernel.org, john.fastabend@gmail.com, kpsingh@chromium.org Cc: netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, Tom Rix Subject: [PATCH] bpf: remove unneeded break Date: Mon, 19 Oct 2020 10:38:46 -0700 Message-Id: <20201019173846.1021-1-trix@redhat.com> X-Mailer: git-send-email 2.18.1 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Tom Rix A break is not needed if it is preceded by a return Signed-off-by: Tom Rix Acked-by: Andrii Nakryiko --- kernel/bpf/syscall.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c index 1110ecd7d1f3..8f50c9c19f1b 100644 --- a/kernel/bpf/syscall.c +++ b/kernel/bpf/syscall.c @@ -2913,7 +2913,6 @@ attach_type_to_prog_type(enum bpf_attach_type attach_type) case BPF_CGROUP_INET_INGRESS: case BPF_CGROUP_INET_EGRESS: return BPF_PROG_TYPE_CGROUP_SKB; - break; case BPF_CGROUP_INET_SOCK_CREATE: case BPF_CGROUP_INET_SOCK_RELEASE: case BPF_CGROUP_INET4_POST_BIND: