Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1530266imm; Wed, 8 Aug 2018 19:57:37 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyap4bg9wD1uGy489CDw1l08DDJEiglLdnxrYpfFZLjKoxnGHk+ewoFsfJj5RGmpxeF6pOZ X-Received: by 2002:a17:902:e28b:: with SMTP id cf11-v6mr324436plb.86.1533783457395; Wed, 08 Aug 2018 19:57:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533783457; cv=none; d=google.com; s=arc-20160816; b=abjlk7I7HiDC5eNl+0Lyqdb7d+WULtTXtJ6+CjoDb/6KYt2UugEsKwNUc6zJiHMuZr Cqnz80L8byEefPOedam0hciJX6tCNOvrzpFAAbobxGX84LBLZrlW4P5AGs9gDKdqev8X Keb4pvdpp7xcnuJtCuukhhpTPAEo5Gwi3q2k5IY/Iv8aeYRkNxgDZE/0yneYl33JZ3y4 licfIk2RAaycixbUox3zIyFCquHWJlWmXb5blxVCbTkDIzaw2LMA7BKZvLWdMaN4+hh3 2IFuU50fjfhfo0LlTPpnq5EWrsfRcjfgA+ca/yzXOXjqL9SV7aWdmaVz85e+Im3SBxWS D9HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date :arc-authentication-results; bh=K4TgW8aIhKR51d5CJzxHXWR6U4kU9CA5eO7+IEpN91c=; b=sjhba+ie7U80iRYCMQVk4K8OrBykXIta5wjX8Ihaa2766leR5Khg+ZrRMn+O3hCBEO RzUgBIVXCncoPdsA9Iue6ZDbqLbEjxv2IJ0EnmyFF8SVJUOFzsDETFvTUW2Pn9w/ZUO3 sbT5WYSIS5+PNWtRcBV6RZ4cRuMkgHt938amNRN4Z5J9IktUf2lIsFfhYnFllOK7ct3b yGzXtEKJ9daAPC9ZaRN8r5tiH340Ey+T30ZKGxv0g9/t7lzK/OoI+Q5mo2iBzdC7KEOP cbg+Tzjruka1Lku4ABSb1sXxcj62XIfbToswFGQpO3x96aeTOsrLjhEOVT8p+hqM1avc pikA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o126-v6si6005720pfb.20.2018.08.08.19.57.23; Wed, 08 Aug 2018 19:57:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728005AbeHIFTC (ORCPT + 99 others); Thu, 9 Aug 2018 01:19:02 -0400 Received: from mga01.intel.com ([192.55.52.88]:36101 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727237AbeHIFTC (ORCPT ); Thu, 9 Aug 2018 01:19:02 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Aug 2018 19:56:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,213,1531810800"; d="scan'208";a="75011782" Received: from sofia.sh.intel.com (HELO sofia) ([10.239.147.112]) by fmsmga002.fm.intel.com with ESMTP; 08 Aug 2018 19:56:27 -0700 Date: Thu, 9 Aug 2018 10:55:37 +0800 From: "Liu, Changcheng" To: broonie@opensource.wolfsonmicro.com, rostedt@goodmis.org, mingo@redhat.com Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, changcheng.liu@intel.com Subject: [PATCH v2 1/2] ASoC: trace: remove unnecessary typecast Message-ID: <20180809025537.GE161967@sofia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There's no need to do typecast since the defined type matches the output fromat requirement. Signed-off-by: Liu Changcheng diff --git a/include/trace/events/asoc.h b/include/trace/events/asoc.h index 40c300f..bf17edc 100644 --- a/include/trace/events/asoc.h +++ b/include/trace/events/asoc.h @@ -32,7 +32,7 @@ DECLARE_EVENT_CLASS(snd_soc_card, __entry->val = val; ), - TP_printk("card=%s val=%d", __get_str(name), (int)__entry->val) + TP_printk("card=%s val=%d", __get_str(name), __entry->val) ); DEFINE_EVENT(snd_soc_card, snd_soc_bias_level_start, @@ -101,7 +101,7 @@ DECLARE_EVENT_CLASS(snd_soc_dapm_widget, ), TP_printk("widget=%s val=%d", __get_str(name), - (int)__entry->val) + __entry->val) ); DEFINE_EVENT(snd_soc_dapm_widget, snd_soc_dapm_widget_power, @@ -149,8 +149,8 @@ TRACE_EVENT(snd_soc_dapm_walk_done, ), TP_printk("%s: checks %d power, %d path, %d neighbour", - __get_str(name), (int)__entry->power_checks, - (int)__entry->path_checks, (int)__entry->neighbour_checks) + __get_str(name), __entry->power_checks, + __entry->path_checks, __entry->neighbour_checks) ); TRACE_EVENT(snd_soc_dapm_path, @@ -180,8 +180,7 @@ TRACE_EVENT(snd_soc_dapm_path, ), TP_printk("%c%s %s %s %s %s", - (int) __entry->path_node && - (int) __entry->path_connect ? '*' : ' ', + __entry->path_node && __entry->path_connect ? '*' : ' ', __get_str(wname), DAPM_ARROW(__entry->path_dir), __get_str(pname), DAPM_ARROW(__entry->path_dir), __get_str(pnname)) @@ -242,8 +241,8 @@ TRACE_EVENT(snd_soc_jack_report, __entry->val = val; ), - TP_printk("jack=%s %x/%x", __get_str(name), (int)__entry->val, - (int)__entry->mask) + TP_printk("jack=%s %x/%x", __get_str(name), __entry->val, + __entry->mask) ); TRACE_EVENT(snd_soc_jack_notify, @@ -262,7 +261,7 @@ TRACE_EVENT(snd_soc_jack_notify, __entry->val = val; ), - TP_printk("jack=%s %x", __get_str(name), (int)__entry->val) + TP_printk("jack=%s %x", __get_str(name), __entry->val) ); #endif /* _TRACE_ASOC_H */ -- 2.7.4