Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp4236014ybt; Sun, 5 Jul 2020 22:37:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy47PLQJfzm9YuWoTahQKqdBQ7sLamUliN2f9r33rEoy1ZKTFwQx3F29ijoBrZdskMfpD1z X-Received: by 2002:a17:906:c0d9:: with SMTP id bn25mr32315779ejb.176.1594013872103; Sun, 05 Jul 2020 22:37:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594013872; cv=none; d=google.com; s=arc-20160816; b=ct5osQrG40J1pNnn9eTA6qimryYJTexBQ2WLCd2hqtQ1qr/1JYd410mv8RlHdpWsm1 u7ipiSpIyhJwyX+zfzmpDS8144J09ciBEZbz4kiFJ9tmRKHdnandovs2xcIhMnSiDq7M NkDj8Gw8QrOIVgvX+W0Wpb/OLj/SekiO0IfEUL+FpTW0ahBEvfJpl0NRudMw74ZWr+b3 a1H8pn/XmScX1S6M5UY6+991sFx0upvJs2JA0VnBIHa3y2e+OjaEHIMzQVw5wKf1dNe7 q+fOetjzUiiUfndB6UMFdLDj5pH4OqkhSQSidKuA1nkhq0h+BD6OaQNTEnYZo1R/BtMn 62Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=MjQpqbbwxGrn3+Ght1VfP5CYDlDshKjA3WqbjbzGGqI=; b=lf71fXDSu07bd2gRC+1MWSauLc0mgNL+OemIWJHRl80qCYKrVpxgH4cv1F+Xr2044o hJ3CiLwLiE1I3mzsLgjNQKg8nFBqZD8BOXF3tN++vq/1A1WzkpfNkbX390SsWA741V0p FfFQqCHopBOTgYVysJhC/h+icJdvEWgbuog/yIB54YOrQaNKYPxbZBhnUSllA9qmrrCm bebdgFSnBmj3fCuUw/JhIkmKV2WtM8/PWRrGO0gFNIkwZXtFWLSrmot2IS3TmOdmgTCk Z3a+j0Cpa7xFNk66BrmOXm5po9KTn+xhzctRFKZTisipt0MkgA3PEHaMyZRhMxIOo1GR pimg== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m26si11717492ejn.40.2020.07.05.22.37.28; Sun, 05 Jul 2020 22:37:52 -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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728804AbgGFFhU (ORCPT + 99 others); Mon, 6 Jul 2020 01:37:20 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:61564 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726684AbgGFFhT (ORCPT ); Mon, 6 Jul 2020 01:37:19 -0400 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0665VBKh113858; Mon, 6 Jul 2020 01:37:07 -0400 Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0b-001b2d01.pphosted.com with ESMTP id 322kcx0smf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 06 Jul 2020 01:37:07 -0400 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 0665Zxu2023948; Mon, 6 Jul 2020 05:37:06 GMT Received: from b06avi18626390.portsmouth.uk.ibm.com (b06avi18626390.portsmouth.uk.ibm.com [9.149.26.192]) by ppma03ams.nl.ibm.com with ESMTP id 322hd7swq9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 06 Jul 2020 05:37:06 +0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 0665ZgmP22544876 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 6 Jul 2020 05:35:43 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E657B52051; Mon, 6 Jul 2020 05:37:03 +0000 (GMT) Received: from bostonp9.aus.stglabs.ibm.com (unknown [9.3.23.179]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id A2E2452057; Mon, 6 Jul 2020 05:37:02 +0000 (GMT) From: Abhishek Goel To: linux-pm@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Cc: rjw@rjwysocki.net, daniel.lezcano@linaro.org, mpe@ellerman.id.au, ego@linux.vnet.ibm.com, Abhishek Goel Subject: [PATCH] cpuidle/powernv : Remove dead code block Date: Mon, 6 Jul 2020 00:32:58 -0500 Message-Id: <20200706053258.121475-1-huntbag@linux.vnet.ibm.com> X-Mailer: git-send-email 2.17.1 X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-07-06_02:2020-07-06,2020-07-06 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 suspectscore=0 spamscore=0 cotscore=-2147483648 mlxlogscore=999 mlxscore=0 malwarescore=0 clxscore=1011 bulkscore=0 phishscore=0 lowpriorityscore=0 priorityscore=1501 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2007060040 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit 1961acad2f88559c2cdd2ef67c58c3627f1f6e54 removes usage of function "validate_dt_prop_sizes". This patch removes this unused function. Signed-off-by: Abhishek Goel --- drivers/cpuidle/cpuidle-powernv.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/drivers/cpuidle/cpuidle-powernv.c b/drivers/cpuidle/cpuidle-powernv.c index 1b299e801f74..addaa6e6718b 100644 --- a/drivers/cpuidle/cpuidle-powernv.c +++ b/drivers/cpuidle/cpuidle-powernv.c @@ -244,20 +244,6 @@ static inline void add_powernv_state(int index, const char *name, stop_psscr_table[index].mask = psscr_mask; } -/* - * Returns 0 if prop1_len == prop2_len. Else returns -1 - */ -static inline int validate_dt_prop_sizes(const char *prop1, int prop1_len, - const char *prop2, int prop2_len) -{ - if (prop1_len == prop2_len) - return 0; - - pr_warn("cpuidle-powernv: array sizes don't match for %s and %s\n", - prop1, prop2); - return -1; -} - extern u32 pnv_get_supported_cpuidle_states(void); static int powernv_add_idle_states(void) { -- 2.17.1