Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2148843pxb; Fri, 25 Mar 2022 11:58:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznXspxFlGOijRIykDsQH5H8dxRkVdpqYA77lM++2cp3daCuKvXPx+qQiw4mBJYrUoVlI1o X-Received: by 2002:a17:90a:af86:b0:1c7:db8e:8589 with SMTP id w6-20020a17090aaf8600b001c7db8e8589mr7342436pjq.94.1648234698633; Fri, 25 Mar 2022 11:58:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648234698; cv=none; d=google.com; s=arc-20160816; b=rLCVFW/s3VCTSN8yv+1NgaYC0cd4HuMqJ3l0OxxXQzn+SCY/SOWf53R7i3kYmqOxcX hsSfHAJsg4XnWCEIVBc4jREO3v9a/XIw4Vqhdc6MBRj476slOCu1lKfJQoI4d35nDbGw aJEsQCvesMJZJOZEva7Ra0ZsJqbWY2RZz4NKeJ4OjCatpuuzj/Ly6A3aUbAbxOhxkXFu 7Ql/LuXM6f2Wj+di7UvxNDd2XGo5Y4j6XauVTRpiMxw6xsKuj+OMVZX5VgEb7sKytKBv BsZGhyZAUU5EX84uOIoV0uXR5VZsWQZu72rUqn6PxXeZucI7Bi62zsVtXH03CUtdzgQO 6vVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=1QWAxhtRVc+xqQaz3nDlFCz51cxO+yQIAX8ztjjM6DQ=; b=llmJqbSN11+Wyw/kHDdnkdg962L3BB79oiVaZlHC9YWTJEPh66Jo+X+QYtuETJHGAZ nCoXta9OvGju0A/dQzP0QAkNcMuaU7A6zSwA9u3nu8xjLNF68CnFXn3fjKcrIcyyXMIf 7MGLIarS//do+1co3VaTD4/s0AzCKBmawYyi47Fai8m6gFwDKAzvvHqC8ulLYPWgDqDo qlb8fWk3j8dKkseifx45vbak8IdVy83p+nnyP3suoNr2BuYPdI2SjtuBMg9bACf8xo7M i4sFD2y6p/Y65e3uHQ6pO4uJMTmHAxgU6IFgC3RAM5lbTWbUV32F98R/Y0UW5lDD7dYN 0aDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=PPGs2BNn; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id m4-20020a63fd44000000b003816043f114si2916804pgj.777.2022.03.25.11.58.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 11:58:18 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=PPGs2BNn; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A120E14345E; Fri, 25 Mar 2022 11:08:46 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352314AbiCXRgK (ORCPT + 99 others); Thu, 24 Mar 2022 13:36:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352303AbiCXRgG (ORCPT ); Thu, 24 Mar 2022 13:36:06 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20162A144B; Thu, 24 Mar 2022 10:34:33 -0700 (PDT) Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 22OHBIDD019495; Thu, 24 Mar 2022 17:34:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pp1; bh=1QWAxhtRVc+xqQaz3nDlFCz51cxO+yQIAX8ztjjM6DQ=; b=PPGs2BNnQiFA7duY6/9XkfeN7p+CW1pRnnkdiB7N4iBfElfnn7dBbmQBxxHgFuc+eWEV X6LgTf+75eX4UBGPn3zLnUMcRrvsS8MNsBt4P/JVA2kEfmAVVrX+ECbnN/roapq8k27D gGyeC5iiHCE0h2i21dnmHfuHhP4Nu8SZX7FEbK5CykjXGspzo30dvK5y90xjXYvyLYtc ho961KRd/bXX5xfcvC//Vgw9ps5ugH7d21i6gKV+j6EcNvvSAUdDBVWe9QAoJcl5xcKC kAFHveQtUqWF8P96I7tNsiLNTqoXZQhA+3mvTNZxoEhO2Iu2rhkIP5/bATP6SBl2PfB0 Lw== Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0a-001b2d01.pphosted.com with ESMTP id 3f0kawe1m2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 24 Mar 2022 17:34:24 +0000 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 22OHRERe005992; Thu, 24 Mar 2022 17:34:06 GMT Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by ppma06ams.nl.ibm.com with ESMTP id 3ew6ej3eb0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 24 Mar 2022 17:34:06 +0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 22OHY33r15270214 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 24 Mar 2022 17:34:03 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2A64A11C05E; Thu, 24 Mar 2022 17:34:03 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D426F11C04A; Thu, 24 Mar 2022 17:34:02 +0000 (GMT) Received: from osiris (unknown [9.145.160.180]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Thu, 24 Mar 2022 17:34:02 +0000 (GMT) Date: Thu, 24 Mar 2022 18:34:01 +0100 From: Heiko Carstens To: Yu Liao Cc: gor@linux.ibm.com, agordeev@linux.ibm.com, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, liwei391@huawei.com Subject: Re: [PATCH] s390: cleanup timer API use Message-ID: References: <20220322030057.1243196-1-liaoyu15@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220322030057.1243196-1-liaoyu15@huawei.com> X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: pt9D8vQT-vnDbWb2ciTWDtyy0syub9I7 X-Proofpoint-GUID: pt9D8vQT-vnDbWb2ciTWDtyy0syub9I7 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.850,Hydra:6.0.425,FMLib:17.11.64.514 definitions=2022-03-24_06,2022-03-24_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 bulkscore=0 mlxlogscore=619 priorityscore=1501 phishscore=0 lowpriorityscore=0 impostorscore=0 clxscore=1011 spamscore=0 suspectscore=0 malwarescore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2203240097 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 22, 2022 at 11:00:57AM +0800, Yu Liao wrote: > cleanup the s390's use of the timer API > - del_timer() contains timer_pending() condition > - mod_timer(timer, expires) is equivalent to: > > del_timer(timer); > timer->expires = expires; > add_timer(timer); > > If the timer is inactive it will be activated, using add_timer() on > condition !timer_pending(&private->timer) is redundant. > > Just cleanup, no logic change. > > Signed-off-by: Yu Liao > --- > drivers/s390/char/sclp.c | 4 +--- > drivers/s390/char/sclp_con.c | 3 +-- > drivers/s390/char/sclp_vt220.c | 6 ++---- > drivers/s390/cio/device_fsm.c | 12 +++--------- > drivers/s390/cio/eadm_sch.c | 12 +++--------- > 5 files changed, 10 insertions(+), 27 deletions(-) Applied, thanks.