Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3384657pxu; Mon, 19 Oct 2020 10:41:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw30DHf9d/IIf9c5e1Z6Vd0AzZ1QRK3jGO0n7aH5hPTmu8GH3xQjRNKc8GK4O9+sVQy2FgX X-Received: by 2002:a17:906:4d59:: with SMTP id b25mr1053554ejv.404.1603129311591; Mon, 19 Oct 2020 10:41:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603129311; cv=none; d=google.com; s=arc-20160816; b=05E1oW04vqGRel4LDsMktg94oLSF2H4F9ig5V8OnsGsC70m9vRpDqDlAaI0A+H0tWk 5njhDI3mlPzwzPwug7EI5qi5UprPpaFHdwNDwP9CdjJnwht8xOIuTpSBgnuVq/7ZLrTl Hk57L2no/Nehnby+g+/9WTRsaKLj2YiSyKXgiMLc7cLecps+DLxBz57d0d6Cbn3dWpqE Q7LfFXV6TqgQx17WmiTYanR2pTiihDcrC/1aYy1NPNj53u0MjKGOJ3S+t+7RN+46tX3Z 0oaOmJRwTSm+ta9lppOguf+4yxzRhU/bkVYIBeir92ygk4/PFQtoknRtSaGqDXG8LU2X rm4w== 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 :dkim-signature; bh=bCZfT5E3im0lNOm7GQVPs0SnshcVMlnSl2CIjv8kRzg=; b=poxVOzR+TwbcRiky7LW2AJKUSOOnL7YTn1XBC+t5IqeQAkopgBe1+5mDU4zdO7Gf6u xO8jDo4/efvuwKwSMyRhCNNQR3vPM6Dtfb+6h0E/D6exKsqN8AYDCi61Gxoa7/X2ZGiU /erYbOOk0iwNhi0oZvLEy+m93DiuogCj5gQybR8YCLT17Du2tKcfXKoykgzWBgWp5BUS 0sG5XxtYEW2Vn/vk7/bbRGtij+80S8kSwepmS2KGNSXB2ldLwB7oMsulYlIexgey6hZ3 hp4Nu+C4xLSq5FgDic/75II1QSgzs9yqcVVoDNjirdrBUvrVLZE5hfy06SpEaLwbZx/h 7wKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XuRj984d; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gw9si430529ejb.176.2020.10.19.10.41.29; Mon, 19 Oct 2020 10:41:51 -0700 (PDT) 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=@redhat.com header.s=mimecast20190719 header.b=XuRj984d; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728450AbgJSRiz (ORCPT + 99 others); Mon, 19 Oct 2020 13:38:55 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:44926 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726124AbgJSRiz (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-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-342-SE2nPwyJMoms2J7lCjvbBw-1; Mon, 19 Oct 2020 13:38:52 -0400 X-MC-Unique: SE2nPwyJMoms2J7lCjvbBw-1 Received: by mail-qt1-f197.google.com with SMTP id t4so394651qtd.23 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=kEo5PslxYHmhJ4Z/QhUgAP7lbgRR3JOpblX/ze/riySMurkJFncIWJaCWCInXpzLlI vd71dw4aYJ3cpqfNt525KArCaUcEM1wjvxflPZmh8YDueLcm4rVCs9s1dgNrPFZ7+d12 NDke6y2ArY7h/gD8zkWSE2qB+6zS4Ajp/D2ZOiXsEzMjKF0WboQD6c6EftHfF0n3n1oc ZVK3Bwml/sCftbtKDCDetPeeoS0wYyzFpL4OP96V4xqZhn8Yq4e1ugz8MDeSHq+laCHB MAJCOVg/C9WoQT8i4VCbGLBwfWC1+r/mcY1rOomOCb7l5Sr//xW2w+WvZV35lMfdamRh 4m5w== X-Gm-Message-State: AOAM530W4z1mEBuQOTv4OFVQ7Ca3GnjV3yjOFnSaJ7HjzzSJalJKCB23 MV52kTUXrTi4EY1PXzRIHp7qKe3mbDZMUwvMuojwtObslaavlq4Ia78qFg2KmB0G5Ym/Z1bXgZJ 6sCF3VaIZt3QPFNqkyRwuLfPd X-Received: by 2002:ac8:937:: with SMTP id t52mr569991qth.268.1603129132249; Mon, 19 Oct 2020 10:38:52 -0700 (PDT) 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: linux-kernel@vger.kernel.org From: Tom Rix A break is not needed if it is preceded by a return Signed-off-by: Tom Rix --- 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: -- 2.18.1