Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp658181pxj; Thu, 13 May 2021 13:49:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypCe3/lsT9osWl8vjI3pBNyq8J8md57wqUeSKqoyiTifxECAs18VYIg4lme6qWQw8wgzGa X-Received: by 2002:a92:c9cd:: with SMTP id k13mr38589673ilq.180.1620938961030; Thu, 13 May 2021 13:49:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620938961; cv=none; d=google.com; s=arc-20160816; b=EOjsFJT7vrgkg/5juzng27Eig/tYkr8ligG9Icw3SRRcq35mMfvmTeG+MI/cIWddi1 3tlzbwpyQPLyjS+vHc44ZQGFixUCgJH0fardqAFb7k2oNK8/NvF+vVOuy6j3fooe9zgi VqDHkrVL4kf9eawdF1glqzbEblMcxEZB6HR7YpejmmKPR3ll5hPk7RjM6+hejqAnjO4j CEzg3e7EyRvmhXFIFP45ajoOpB3fKM+Q1elnTbLTDA7BKQ1hbDjGqEv3mSX1ZMc5544P S8lmiQ8YVaoQtDphO0yyusqeMxopd3tiH2nm/2sxHzCO7RWyk4MVROu8la8Mxli9HJ/t m/Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=TAfcaVY37DHjXxb/5f8+kExhBC9DOCoDBzhwASRP3Y0=; b=NTrTsg1SEJ4QX6EKKlSiJyEALdDq6yFbla0rwNCdAkfkXZih88pIj+x84FX/Q5zHiI JZoEXYD+9Ale+JJtHLhjgmaylNi5VUxxBDkolf2wOd4aq0gCeGrGuDvI6JIn9q9moIBH q61zVJtjPvMEABlGqSNF5+64OxJq7Deu4pWcUVKgGmNgXLZrtziGjQzE3V0LN2YhcZwz F4XoGAzc7AuJB3lyDCM04yjLSXXIfTkF+4ASK0Hse0/jQIJjThKztYkvK55MSxHRK2T4 VD7R9knA4HvjyX4m22IwZGhewjMVfckj8/97YldtWoFwa0jxpwVhgEpTiOhgqgmyFPqH qqIg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a7si4439509ioc.87.2021.05.13.13.49.07; Thu, 13 May 2021 13:49:21 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234051AbhEMNii (ORCPT + 99 others); Thu, 13 May 2021 09:38:38 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:2589 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233987AbhEMNie (ORCPT ); Thu, 13 May 2021 09:38:34 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4Fgt1Z717pzsRGm; Thu, 13 May 2021 21:34:42 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.498.0; Thu, 13 May 2021 21:37:13 +0800 From: Qi Liu To: CC: , Subject: [PATCH] intel_th: sth: Remove unnecessary return value Date: Thu, 13 May 2021 21:37:04 +0800 Message-ID: <1620913024-57219-1-git-send-email-liuqi115@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Junhao He intel_th_sw_init() always return true, it's unnecessary to keep the return value. Signed-off-by: Junhao He Signed-off-by: Qi Liu --- drivers/hwtracing/intel_th/sth.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/hwtracing/intel_th/sth.c b/drivers/hwtracing/intel_th/sth.c index 9ca8c4e..5d4effd 100644 --- a/drivers/hwtracing/intel_th/sth.c +++ b/drivers/hwtracing/intel_th/sth.c @@ -164,7 +164,7 @@ static int sth_stm_link(struct stm_data *stm_data, unsigned int master, return intel_th_set_output(to_intel_th_device(sth->dev), master); } -static int intel_th_sw_init(struct sth_device *sth) +static void intel_th_sw_init(struct sth_device *sth) { u32 reg; @@ -179,8 +179,6 @@ static int intel_th_sw_init(struct sth_device *sth) dev_dbg(sth->dev, "sw_start: %x sw_end: %x masters: %x nchannels: %x\n", sth->stm.sw_start, sth->stm.sw_end, sth->sw_nmasters, sth->stm.sw_nchannels); - - return 0; } static int intel_th_sth_probe(struct intel_th_device *thdev) @@ -221,9 +219,7 @@ static int intel_th_sth_probe(struct intel_th_device *thdev) sth->stm.sw_mmiosz = sizeof(struct intel_th_channel); sth->stm.link = sth_stm_link; - err = intel_th_sw_init(sth); - if (err) - return err; + intel_th_sw_init(sth); err = stm_register_device(dev, &sth->stm, THIS_MODULE); if (err) { -- 2.8.1