Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753847Ab3FJPXh (ORCPT ); Mon, 10 Jun 2013 11:23:37 -0400 Received: from e06smtp10.uk.ibm.com ([195.75.94.106]:59845 "EHLO e06smtp10.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753693Ab3FJPXf (ORCPT ); Mon, 10 Jun 2013 11:23:35 -0400 Date: Mon, 10 Jun 2013 17:23:30 +0200 From: Heiko Carstens To: Thomas Meyer Cc: linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] s390/ap: Cocci spatch "ptr_ret.spatch" Message-ID: <20130610152330.GB6341@osiris> References: <1370080273.29224.21.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1370080273.29224.21.camel@localhost.localdomain> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13061015-4966-0000-0000-000005FA7BE1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1183 Lines: 33 On Sat, Jun 01, 2013 at 11:51:13AM +0200, Thomas Meyer wrote: > > Signed-off-by: Thomas Meyer > --- > > diff -u -p a/drivers/s390/crypto/ap_bus.c b/drivers/s390/crypto/ap_bus.c > --- a/drivers/s390/crypto/ap_bus.c > +++ b/drivers/s390/crypto/ap_bus.c > @@ -1795,7 +1795,7 @@ static int ap_poll_thread_start(void) > mutex_lock(&ap_poll_thread_mutex); > if (!ap_poll_kthread) { > ap_poll_kthread = kthread_run(ap_poll_thread, NULL, "appoll"); > - rc = IS_ERR(ap_poll_kthread) ? PTR_ERR(ap_poll_kthread) : 0; > + rc = PTR_RET(ap_poll_kthread); > if (rc) > ap_poll_kthread = NULL; > } > @@ -1904,7 +1904,7 @@ int __init ap_module_init(void) > > /* Create /sys/devices/ap. */ > ap_root_device = root_device_register("ap"); > - rc = IS_ERR(ap_root_device) ? PTR_ERR(ap_root_device) : 0; > + rc = PTR_RET(ap_root_device); > if (rc) > goto out_bus; Applied all you s390 related patches. Thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/