Received: by 10.223.164.202 with SMTP id h10csp3627643wrb; Tue, 28 Nov 2017 14:34:50 -0800 (PST) X-Google-Smtp-Source: AGs4zMav0KcWm3v2MjndFLJDj6ZDYlQykIx7xbJRpEzwAYaSJkDQX15kX/0+7sKNx9/y77zi5CSQ X-Received: by 10.84.132.9 with SMTP id 9mr709689ple.77.1511908490054; Tue, 28 Nov 2017 14:34:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511908490; cv=none; d=google.com; s=arc-20160816; b=hd4MythPRt5ChIlS3cOnAcktqwSOg8ROFiHZafPFnOY/qmvVfRQdEb0p3Tx5nG1eKV mZusKLiUcpTzbQqA8twVZJA6DcMuPW+p2Yl7DmwicbviILx6zQQHOcHflTsR4T7DRxv8 1Iij6++W1OQXdycsATEe7Un5vgO5KR5Wew10tnixnOMGlZsWzRyYKK14jEwAu3bQu3sc 5Nnoh5pZN31M/p7tQy5xN5+19TP/yJFN0qrxp8VuIzJmJqxLdyVjySP8KcwKF26mt8Ma RJg6n3qilcdgaSLzoYvz0xGK7+0b6TfZUWFEFqd0Pfxykw/3RxQfuHiq7fPiO8To4SF6 Xz3g== 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 :dkim-signature:arc-authentication-results; bh=FUhwKMAjqtgoizMS6waVd5fTTbxLYZ3eZrDbUV+iNtQ=; b=e4KUBW9SURxbDItWgGQP5kAiRKfp4/6aafLKqyg3uZfHrx1coOjYCA3ZjpmjyaDQRv MNzCIuM4E4dUTP7wvf9w7vmev3vfSEaK+V7vIB4phG5q33yhVVlPE5dMGNyPIohW4W+s HMtrxJGTEMM7GxII0GIF07kB7lKCXZd1l+NaowHGa9IoYNRy95yVrwer7Pj6oFQ+2lck Wrs8XZz59iXlKNcsY4lFuS+bawjqcXINEyF1sX4SYbYGfa2uQcgGQNKLGfmLCFndQBAL Ddi6VnPg86ix9a8Xi5qBzQDAO5nM+ueNFOVDmf+BzN8TK50QMqsiXp9mKT50bmOJ4O+L eyVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UetWEJ7v; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b61si168374plc.277.2017.11.28.14.34.39; Tue, 28 Nov 2017 14:34:50 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UetWEJ7v; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752840AbdK1Wcw (ORCPT + 70 others); Tue, 28 Nov 2017 17:32:52 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:45518 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752101AbdK1Wcu (ORCPT ); Tue, 28 Nov 2017 17:32:50 -0500 Received: by mail-lf0-f67.google.com with SMTP id f13so1612330lff.12; Tue, 28 Nov 2017 14:32:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=FUhwKMAjqtgoizMS6waVd5fTTbxLYZ3eZrDbUV+iNtQ=; b=UetWEJ7viNj1LdUEMtXwdyeeV8eNQBdvb48SuYaOoJk07K51bk4IegWJjGvfZXULc0 89BlL8Sda6bdchVR4Scrx+CmCOKPT5ynFe/kPql8yTt5L3tMzrDvB4Mb5von8JeqSl0R aWfChREvcFndW7I/+OhN1Cab5uScT0SuE8uDnSeP4V+Q3t89Msc3nKDOGHI05A6zelaE fJ0Q0Ee5Jm+5AjGDEwuxHycrHhVmJoYrGQN81ez8GKJ6u99ke+E0QDtjQxyrAqPC1m1G cinQgkX6tC3F6UROGCU4sFBTlTMAsDsaOnRVtsbIjJHpmsWbfoPKP9yrq25UMb4RrWI5 GGSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=FUhwKMAjqtgoizMS6waVd5fTTbxLYZ3eZrDbUV+iNtQ=; b=NXGvHlRX+OpyZqny9IQv/vMsFw8Z2prAuobcxhadCt9Vh2pLM5ctaUbyGzhTBbVoJL SDWkK8CAZrED+ZY1SVk9sJtRVnteT6DSZ9hUajlID81t9RBfbU6SDrZuo4CuP8MO+xS5 NoI9uvSgUSKhLEhau6Qd0gCIwHIoU4FkeKYIpYDkEAPG7nUUYPowQCA85BDhMkijBSDC vKNpgQWEDDVpYVBqElgSpX6TdhPY3yRslnVX52rRc0g3sZedfaSt/vBAgNVZdJoENHuW HNW01Wc7GUY8v1LIWj9y8gpnlHYkttaD4ztm/pHZv7dViq1R6+nqPBWK+A72VPVpBvrh ai/w== X-Gm-Message-State: AJaThX4tHrI5SAkrgdVxiZMgkosVw0opuF/yLHFhqfGhUXf2Kd2ymKTg WuWS4Ymvf4zgHvN1kbkYQh4= X-Received: by 10.25.203.17 with SMTP id b17mr236491lfg.5.1511908369135; Tue, 28 Nov 2017 14:32:49 -0800 (PST) Received: from localhost.localdomain ([195.254.138.66]) by smtp.gmail.com with ESMTPSA id 62sm39590lfw.31.2017.11.28.14.32.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Nov 2017 14:32:48 -0800 (PST) From: Vasyl Gomonovych To: ohad@wizery.com, bjorn.andersson@linaro.org, linux-remoteproc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, gomonovych@gmail.com Subject: [PATCH] remoteproc: qcom: Use PTR_ERR_OR_ZERO() in glink prob Date: Tue, 28 Nov 2017 23:32:40 +0100 Message-Id: <1511908360-7712-1-git-send-email-gomonovych@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix ptr_ret.cocci warnings: drivers/remoteproc/qcom_common.c:60:8-14: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych --- drivers/remoteproc/qcom_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/remoteproc/qcom_common.c b/drivers/remoteproc/qcom_common.c index d487040b528b..e9b5f2a98c4d 100644 --- a/drivers/remoteproc/qcom_common.c +++ b/drivers/remoteproc/qcom_common.c @@ -57,7 +57,7 @@ static int glink_subdev_probe(struct rproc_subdev *subdev) glink->edge = qcom_glink_smem_register(glink->dev, glink->node); - return IS_ERR(glink->edge) ? PTR_ERR(glink->edge) : 0; + return PTR_ERR_OR_ZERO(glink->edge); } static void glink_subdev_remove(struct rproc_subdev *subdev) -- 1.9.1 From 1585389279376299488@xxx Wed Nov 29 08:43:57 +0000 2017 X-GM-THRID: 1584913485022571323 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread