From patchwork Thu Nov 5 15:47:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sumit Saxena X-Patchwork-Id: 7562341 Return-Path: X-Original-To: patchwork-linux-scsi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C7929BF90C for ; Thu, 5 Nov 2015 15:48:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 06A82208B8 for ; Thu, 5 Nov 2015 15:48:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 23552208AE for ; Thu, 5 Nov 2015 15:48:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1032990AbbKEPsP (ORCPT ); Thu, 5 Nov 2015 10:48:15 -0500 Received: from mail-pa0-f52.google.com ([209.85.220.52]:34390 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030685AbbKEPsO (ORCPT ); Thu, 5 Nov 2015 10:48:14 -0500 Received: by padhx2 with SMTP id hx2so82778189pad.1 for ; Thu, 05 Nov 2015 07:48:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=avagotech.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=JEfIQzGqc6Avhwtfb7sjduFus9jsulpNxEqsDPxCPIc=; b=X70pT3OF0431ndmgt0INDYIGDliFR4GsEc5IXi0cCzRe9DJrdAdFm+jWM0pRrVAXim sW1wpW3xdnMKjndZ20dtU0E9PshE0fovsa5iuR1qaVFblxEh+08Cul2PG5PdRPzGAokZ x/InKrGeforrymNzd9ZTWfiPlzuS0kFF/obzg= 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:in-reply-to :references; bh=JEfIQzGqc6Avhwtfb7sjduFus9jsulpNxEqsDPxCPIc=; b=HwbJtO0t1jMdQ/kiUMDawz3DM4SXuZdyid/5WJ+9Ig93vPhtFyvWOHA/Xa88bmjXoW iwiV6R4+enH8Iqxd/jCxWuK+6Y6sCddkoenn3Po/pMSsGHgno9PNQEfpk1ht5/VJhu0T 5hheWFksiV9vmhhRy0Y01CtczH5f610wEpc+WvhPk4uX94QSzeaLzTzw60mQtWPHGCk9 FUS6SGX8mlJmQQUlHOoqd+VmZlpcPWeWmfjXfVqJ2sf+qgjw3C3w2wotelAa2uq7/+me aDX4pnXSIEnKAHpgj7gR3LsIlECziXsf3TfEZ7xpzwKoc2ETPNITFNqKbX4cA5lMGhKK 1DJA== X-Gm-Message-State: ALoCoQlnfMPSlEqLlgXyjKf6LIO/8QA8MECrg7qOCPx5i/Rfg0hMNFW9H6z/0uLU1Tb7VWHdhC7N X-Received: by 10.66.254.73 with SMTP id ag9mr10086021pad.116.1446738494098; Thu, 05 Nov 2015 07:48:14 -0800 (PST) Received: from host1.lsi.com ([192.19.239.250]) by smtp.gmail.com with ESMTPSA id sz7sm8628664pbc.57.2015.11.05.07.48.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 05 Nov 2015 07:48:13 -0800 (PST) From: Sumit Saxena X-Google-Original-From: Sumit Saxena To: linux-scsi@vger.kernel.org, jbottomley@odin.com, martin.petersen@oracle.com, thenzl@redhat.com Cc: kashyap.desai@avagotech.com, Sumit Saxena Subject: [PATCH 2/2] megaraid_sas: Fix sparse warning Date: Thu, 5 Nov 2015 21:17:38 +0530 Message-Id: <1446738458-12425-3-git-send-email-Sumit.Saxena@avagotech.com> X-Mailer: git-send-email 2.0.2 In-Reply-To: <1446738458-12425-1-git-send-email-Sumit.Saxena@avagotech.com> References: <1446738458-12425-1-git-send-email-Sumit.Saxena@avagotech.com> Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,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 Signed-off-by: Sumit Saxena --- drivers/scsi/megaraid/megaraid_sas_fusion.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megaraid/megaraid_sas_fusion.c index 72c731d..bdc2606 100644 --- a/drivers/scsi/megaraid/megaraid_sas_fusion.c +++ b/drivers/scsi/megaraid/megaraid_sas_fusion.c @@ -1865,7 +1865,7 @@ megasas_build_syspd_fusion(struct megasas_instance *instance, /* Want to send all IO via FW path */ pRAID_Context->VirtualDiskTgtId = cpu_to_le16(device_id); pRAID_Context->configSeqNum = 0; - io_request->DevHandle = le16_to_cpu(0xFFFF); + io_request->DevHandle = cpu_to_le16(0xFFFF); } cmd->request_desc->SCSIIO.DevHandle = io_request->DevHandle;