Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2958256pxj; Mon, 14 Jun 2021 11:00:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwavQAfHd8XPeMY3D13iCB4lBzvO2s6qYhw768wbT2+pIrSeAlPl/NvERkEn0QuYoorDUb+ X-Received: by 2002:aa7:db93:: with SMTP id u19mr18467195edt.227.1623693642786; Mon, 14 Jun 2021 11:00:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623693642; cv=none; d=google.com; s=arc-20160816; b=HQLcHN4ci88/7RZuqo6/lv5Z0LjHRL+pPedfjE0bPLHQzHzWIo4wNU6r9Cv4E3WmXI nytHrBjz8BDw1Ul/dCg+c1CRhDEM5yKfkIP0KUbjbEzWjShnZYNwowlvkSweycbNy+h5 ao37zixPy3VXjEAPexLAhSVtyySuWPXSliJS9hopRe450JuAMtYD5a/hw7LPD1jSx0iS 2pacf4pHQI4pahHWDyEq8+ZIoTphbjj7eST+FKjiXQvq+r2C2fn2/Z74BcNygvAdKVCW mb7kp0lCoO0adA1mw4Rx1jQ/oRFUI2hPJofrye6C5Am5ZQC/cA5Lw91Ap4WyHXmR9eWk s7eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=CEhJJ0I3n+465SJ2OQg4qV6RTAF3hyu2gH1k9jBoTOg=; b=u1T+k6zuusD3JRB5z1LnNZTrlFpq1Y/K2EH8WC4gqLIGe5adH2TwMJIi4cwk2S6o93 mC5WVzUZ1Uj6gn4gB4Rx6t8BVcoQTiYTkcO9CJatk2q43EXsOFtwZ75WIP3lor/Ti5PN ZkQIopl1lRUzgUzbXYCoQTrnIVPTnXgUEH1L/4s2wmt09U0MjZF+9yA/Bl+LBtExjs/p oUkzjlsbtQItBMOMIl9s4rmbnlFo2JWg+DxALk3r0vpNb33KRSvsplOMTyn8HTWG7V4e HwB5IWHNuhjkMy/Fj/dgnYvhltulpOh39TObiCO877deV1iksRNmfYgajF+KACxZ7BJ5 h2Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ORyklIpG; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 11si11596071ejn.267.2021.06.14.11.00.19; Mon, 14 Jun 2021 11:00:42 -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=@linaro.org header.s=google header.b=ORyklIpG; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234649AbhFNSBN (ORCPT + 99 others); Mon, 14 Jun 2021 14:01:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234637AbhFNSBN (ORCPT ); Mon, 14 Jun 2021 14:01:13 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22428C0617AF for ; Mon, 14 Jun 2021 10:59:10 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id k7so10168656pjf.5 for ; Mon, 14 Jun 2021 10:59:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=CEhJJ0I3n+465SJ2OQg4qV6RTAF3hyu2gH1k9jBoTOg=; b=ORyklIpGZd7xWxuqsxdXJPwiACup5toMdSnvCu5RVrIvVygDCbJV3Oa4UQ4Eekc48E 07DgbCWWq38os9FG8K0I4rvXPe0LV1N9Ub5bhq1q0SIKOm3SiKD14MLaMOtgUaAK5vTm Ca+nHGih5Sq2iJPw0S20YHYcX/Uqr5bI7xh6pLoBvVRNUumcwqb05iqfW2EiTRrtDZB2 vmLyotVaNg22/Knqw2YqifBcfuGQXwUV7PZf5CnUeSS2e87++UwkZucXA+2U+V99bBsE M7OrG+FHlLdpaXFtvxZtsqrDAgjr7UcXLhM6uOjUSFpAu10xaw28YF0F6sjvf1wOy5NM ILNw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=CEhJJ0I3n+465SJ2OQg4qV6RTAF3hyu2gH1k9jBoTOg=; b=Iv7hC2UWCYwwKmmDKO+iKstVOmkEDJzuda7myQqn7sSmIJxJ84axrVtnl2gTa3PmeT bJuw6HH1qq8/KqgDcMqrmwFkmh2ULPmc7aUkmsVECxxaxLrAgeWx/Zcc/44MYOngC1t4 vqXsbjKyiawK/TYqYIx3NpOAquD6pyMWNrR3cnhzhxhi+dOu2126tIy1jFJQIBCg0kHJ s1iNiXuRszdblFDo8dhLAa1We1C5uj853wIVspB4Eg+c3NxxZ5wXPwiXkwtl/4/liUY0 38i5W/81xQQ2NyaLA1XKMQICNMts1MhiJ4rosq5UASv4+GwI90dIKRwUQjvv1Bk3s3Sg J7gw== X-Gm-Message-State: AOAM532R7r2IjHUw+n4xYh7kNI7xCmPGvcwBvbgfE9+/FD3EsX1/Nf+f Y8ZaoEwJmPdugvG+N6QAAC2bIQ== X-Received: by 2002:a17:90b:1808:: with SMTP id lw8mr19960036pjb.30.1623693549668; Mon, 14 Jun 2021 10:59:09 -0700 (PDT) Received: from p14s.cg.shawcable.net (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id z17sm13553246pfq.218.2021.06.14.10.59.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Jun 2021 10:59:09 -0700 (PDT) From: Mathieu Poirier To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/6] coresight: etm4x: core: Remove redundant check of attr Date: Mon, 14 Jun 2021 11:58:59 -0600 Message-Id: <20210614175901.532683-5-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210614175901.532683-1-mathieu.poirier@linaro.org> References: <20210614175901.532683-1-mathieu.poirier@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Junhao He "attr" is checked by perf framework, so remove the redundant check in etm4_parse_event_config(). Link: https://lore.kernel.org/r/1620912469-52222-4-git-send-email-liuqi115@huawei.com Signed-off-by: Junhao He Signed-off-by: Qi Liu Signed-off-by: Suzuki K Poulose Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etm4x-core.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-etm4x-core.c b/drivers/hwtracing/coresight/coresight-etm4x-core.c index db881993c211..da27cd4a3c38 100644 --- a/drivers/hwtracing/coresight/coresight-etm4x-core.c +++ b/drivers/hwtracing/coresight/coresight-etm4x-core.c @@ -568,11 +568,6 @@ static int etm4_parse_event_config(struct etmv4_drvdata *drvdata, struct etmv4_config *config = &drvdata->config; struct perf_event_attr *attr = &event->attr; - if (!attr) { - ret = -EINVAL; - goto out; - } - /* Clear configuration from previous run */ memset(config, 0, sizeof(struct etmv4_config)); -- 2.25.1