From patchwork Wed May 11 19:28:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Muhammad Falak R Wani X-Patchwork-Id: 9074041 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 55AC39F1C1 for ; Wed, 11 May 2016 19:29:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 246A42012D for ; Wed, 11 May 2016 19:29:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4700A2010F for ; Wed, 11 May 2016 19:29:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751611AbcEKT3Z (ORCPT ); Wed, 11 May 2016 15:29:25 -0400 Received: from mail-pa0-f67.google.com ([209.85.220.67]:32859 "EHLO mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751462AbcEKT3Z (ORCPT ); Wed, 11 May 2016 15:29:25 -0400 Received: by mail-pa0-f67.google.com with SMTP id gh9so4232021pac.0; Wed, 11 May 2016 12:29:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=WxC+zEfZJ9hpS5YtzGGHofXqtS7VADPLSdUDn8h15Yw=; b=gqAn3jSq/+ycpDrWv+XktLCM312HEMqGEoYLVanreYtsTEDg5+6cTJbN+S9Z0m6JdK pozdAd8XsU8KV2lsDOD+FwaOLuFAnFxK/xGWLbkrLung5R5Rj2F+Z9+kZnHRJpCfualE NgE8TcO6eGDOMuyW0t9uPCuf8uRwnuD00/XVCwyc0m7eXCOuMJoD5KqmSpo1xwCQGYdF ZynKylieO9MQcBTky5q2wMddiGlvCEd5B3e/8TavpKQGilRHr4d+BsptiqEEpRD2+l44 pjQ74Q8Gxsq7yBkUGRQWvT8iIo2zPNLb+HgZ3BPXTkuKj0Xa6mH0G9hr09pKN9cNH/bA kxpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=WxC+zEfZJ9hpS5YtzGGHofXqtS7VADPLSdUDn8h15Yw=; b=iQ0W0no594hoVLXqiDDyGBpoyLDRoZ2gFZG9pwFZG4OPTI//wEhkw8dACCUBN1B1yt 9HQ15uUog3W6jLCfI0r7EN8zAVHrzfgdkuHBZTC4njet3KiWvvm47+x42j/sH4i1yZQS t/c1WIB+YCtK44qY+kVywc+TyvNifm8N49Npnq7dvD3iAGbt2s8ZeGk0yWKoXi9jSn7Q Qk0GeOdwkxATxU37Hq2eV9p/R5//ZGFZ6mI+K0I5FCU+CwaVSf6//IF0PbGqbSWgnly2 NU1H00X3wgeir74Al1n2i8gFyHhophbMqsGR678mzdgFahUty+kQy84KvI6Fkp4iHMbF 3cbA== X-Gm-Message-State: AOPr4FXljrD7/d3Q4oqTuImIrw1vyn1lNdC6G4lIsy9rfaryeb8gH6R+1eg+I1bqD+Fnuw== X-Received: by 10.66.168.198 with SMTP id zy6mr7510043pab.10.1462994964301; Wed, 11 May 2016 12:29:24 -0700 (PDT) Received: from kp.domain.name ([110.235.28.83]) by smtp.gmail.com with ESMTPSA id t62sm14085453pfa.38.2016.05.11.12.29.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 May 2016 12:29:23 -0700 (PDT) From: Muhammad Falak R Wani To: Herbert Xu Cc: Tadeusz Struk , "David S. Miller" , Geliang Tang , qat-linux@intel.com, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] crypto: qat: remove unused vairable. Date: Thu, 12 May 2016 00:58:31 +0530 Message-Id: <1462994953-3195-1-git-send-email-falakreyaz@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove the unused variable ret, and return 0 explicitly. Signed-off-by: Muhammad Falak R Wani --- drivers/crypto/qat/qat_common/adf_ctl_drv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/crypto/qat/qat_common/adf_ctl_drv.c b/drivers/crypto/qat/qat_common/adf_ctl_drv.c index db21b49..0f0677f 100644 --- a/drivers/crypto/qat/qat_common/adf_ctl_drv.c +++ b/drivers/crypto/qat/qat_common/adf_ctl_drv.c @@ -273,7 +273,6 @@ static int adf_ctl_is_device_in_use(int id) static int adf_ctl_stop_devices(uint32_t id) { struct adf_accel_dev *accel_dev; - int ret = 0; list_for_each_entry(accel_dev, adf_devmgr_get_head(), list) { if (id == accel_dev->accel_id || id == ADF_CFG_ALL_DEVICES) { @@ -298,7 +297,7 @@ static int adf_ctl_stop_devices(uint32_t id) adf_dev_shutdown(accel_dev); } } - return ret; + return 0; } static int adf_ctl_ioctl_dev_stop(struct file *fp, unsigned int cmd,