Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1937972imm; Thu, 12 Jul 2018 10:13:40 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcKYnL4jyDHf1rc5u/BDVkQuq2ZznRhzwLeizs7F5V/6/pOnOIKLLCYbvDefXCvCA4lW0wn X-Received: by 2002:a17:902:758d:: with SMTP id j13-v6mr3037563pll.80.1531415620836; Thu, 12 Jul 2018 10:13:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531415620; cv=none; d=google.com; s=arc-20160816; b=iCHLsnk0T9ZAZqPFY5QpM3KuqNfzYofLP85CdOnd8jYFCufOge41Lfja+VQyluuqIt gAW2NaWAmBRagULCaFJdiJS5YoaaHHnLfuw7mqF8kOwXiZi/GSZn2N1lmfsz37WjxYdQ L+3UQbxN9dkEk/WU8faWe6uz9ZuL0Ojniv3S9xPpth6/GnizCeWrkYgE7D2+draXg5b4 khfZjgXoN85N5kH0es/ul2N9yfq/8TxSbgE4dLDKP6Qzwsd07fTXDRLBfZ2JqulHTC+i aQev47G8ykwPwPNLVJjucVlw/O449PznaVf4Ap73Rz9+Ai2ycJbnqHCoduvs0ypjlLYt +JWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=7C6ZdDOTsokL8Tan56g1OTjzcgikxAE9g21EHplUgNU=; b=ZoWVHk1d5ZHadOc6t+wJlYvgjZJgFG6LK/4nq2j/TAvx3ABqtMqJ9Hd2S4GXbKlR9s CUuLhQDjNXBtEW0INrQrEKjjoISM3L95sAY8HXfGeiXMWOPpwkBKAw7m9rufH7A+FwKg zKCu6OgpDqSs9SP7tR2qTZ0jf5bMBijSrG7r8Kfp1bK3aFxX1W5dc85fIXpOEdWjUmOw hibJPO6fZLNNy4bsfgY7zvI6kdsnOzzViydBR/GhaEDtlcZAo4lHgz0viRGzrpGUFSX2 rDfTAcFVLuDaOuSHlrNbxG1nbpP1mYdtZGOPm3pQsPNXgLYkQSzy0yoJzaAD5BcP3UnF OnYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=SjRFgix+; 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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y10-v6si9198334pgf.312.2018.07.12.10.13.25; Thu, 12 Jul 2018 10:13:40 -0700 (PDT) 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=@nxp.com header.s=selector1 header.b=SjRFgix+; 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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732417AbeGLRXS (ORCPT + 99 others); Thu, 12 Jul 2018 13:23:18 -0400 Received: from mail-db5eur01on0049.outbound.protection.outlook.com ([104.47.2.49]:33696 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732418AbeGLRXS (ORCPT ); Thu, 12 Jul 2018 13:23:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7C6ZdDOTsokL8Tan56g1OTjzcgikxAE9g21EHplUgNU=; b=SjRFgix+X9/dOHE07stcHtI0xk91xvSycoxWWyEOu7XfAZFfsf5M09IGxhGLvblZYolD5jCVLqJM3TFMaxdB59FCNpjRqclG3Ord41Z3sKGlQeqVxtmYYAX6Zyit0/NX/ayRjs6dUIKvqOw/gIkPK4LlqBKKbHPhcfyqSCTel8A= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ruxandra.radulescu@nxp.com; Received: from rhuath.am.freescale.net (64.157.242.222) by AMSPR04MB342.eurprd04.prod.outlook.com (2a01:111:e400:8032::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.930.21; Thu, 12 Jul 2018 17:12:44 +0000 From: Ioana Radulescu To: gregkh@linuxfoundation.org Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, ioana.ciornei@nxp.com, dan.carpenter@oracle.com Subject: [PATCH] staging: fsl-dpaa2/eth: Remove unnecessary cast Date: Thu, 12 Jul 2018 12:12:29 -0500 Message-Id: <20180712171229.20745-1-ruxandra.radulescu@nxp.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [64.157.242.222] X-ClientProxiedBy: SN4PR0501CA0138.namprd05.prod.outlook.com (2603:10b6:803:2c::16) To AMSPR04MB342.eurprd04.prod.outlook.com (2a01:111:e400:8032::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a1a18839-4ed1-464e-2bc5-08d5e81aafdc X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(48565401081)(2017052603328)(7153060)(7193020);SRVR:AMSPR04MB342; X-Microsoft-Exchange-Diagnostics: 1;AMSPR04MB342;3:vHcLxS3hcjCyZ+zz7V08db0pFthFoHwGfB0Bn0++ylo97aMNGyN8w8WuNGQ9FRGPKyjRlN/BDjzdxjtA9b8omZRUvumHPRj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j4vexLronAfR4lRl+2Y5vOaJDFyDfWJ9IO3SzTQl6dIDlleuWyqula5LdqeqaBuidezgAI+YfTCdWuyOMM5Uh8nGqtJoDMRyYBa/AzKgqd7h8x7RcBYFV7+7I7s2OJ77uqsn+wSjQDZ0Wf/AFdKVgUJXwQusO5vfLP+Z0BTspL6y4HqCGOaRuDO6F724A5rQHs5O3BAXwcRkHJGz+rdzMtRd+uugk9PnDwM40cs30HmQFuTqnFdFZFFT3kbh2;4:U/l2y1NkPcVtoyGpY1HMAh4nibhZ0Mfo3r15/pb5qUy0hKztUKgtFINfnqgkgj4wUcJRrRnvggwmWil+zzy7VtDl6tWmRgL0avfcuiPmFz47w2VwyMwCVpBShXt1ehy8F1r5rpXPCo0kKgcWBXR1dgEtt7SAM+fJspgBREeLqrTsMrvqO1/HtDTvffCQzFCQPtLxmHHhToyO0x/8QmR2srMEM688fFODco5Upsafai/lIx9H2mNaKaxxfseE1ZtzD3MXWnYhJGLX7Fery6ScGjVZcYgBcgphSymsGup8TE2q6/H2JcwTVPs+mNNSAWJZ0VFAR78ugjgyyWvXdmOoDbK4vifdZZWBdqQXfuU5wHU= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(146099531331640); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231311)(944501410)(52105095)(93006095)(93001095)(10201501046)(3002001)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011)(7699016);SRVR:AMSPR04MB342;BCL:0;PCL:0;RULEID:;SRVR:AMSPR04MB342; X-Forefront-PRVS: 0731AA2DE6 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(376002)(396003)(136003)(346002)(366004)(39860400002)(199004)(189003)(386003)(316002)(1857600001)(486006)(2361001)(16526019)(478600001)(186003)(68736007)(26005)(52116002)(51416003)(2616005)(956004)(2351001)(14444005)(5660300001)(50226002)(476003)(2906002)(16586007)(4326008)(81166006)(81156014)(6116002)(1076002)(6506007)(50466002)(53936002)(7736002)(6916009)(25786009)(48376002)(106356001)(3846002)(86362001)(8936002)(105586002)(36756003)(97736004)(66066001)(8676002)(6486002)(305945005)(47776003)(6512007)(6666003);DIR:OUT;SFP:1101;SCL:1;SRVR:AMSPR04MB342;H:rhuath.am.freescale.net;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;AMSPR04MB342;23:4Yo6L0iUq/V1mVl0nocp4zrOST6BA3RZHKyKYBuHHu?= =?us-ascii?Q?1nnDpT/1KGSTMeJ6xxyIVOlzjZ/DL6T8mKIW3t+2FXSPeN4eR11yzaYZi+Ir?= =?us-ascii?Q?6kAF/l9su+3kmPlDrTsKbczFZWjy1sm//BNespn21BlNzuuQtDOk6zivpL+3?= =?us-ascii?Q?htWso0hV7Np4SS2nTA3QBk/4dAG0kZ41qV9/GTZEBo5zFSIoc7VtGLo5Q34K?= =?us-ascii?Q?gHbFerZw3K6GqoXXQPZCqIsOAOL1jZSvFDNobjedlUbtRgCyteFOD99uQt9q?= =?us-ascii?Q?2C4yEYvGby2jBn6W00j9xcZP+o/MJOYvetUcXZTj59wNqRrY05NFMcxkerkm?= =?us-ascii?Q?benqhJQXwnTdmgcIuB7nqqPiyGpgn/pPNoi6hDWCJbSSqaNzKgXLyYMDTZZu?= =?us-ascii?Q?9tqt/fveeWK9ZcXSkctUZsVPqtec7YY41yQhcvNI6EO3x+/IKxnpSOphVrYx?= =?us-ascii?Q?ktHHvYwCY9ww/+YbhwgmU2+ejdx9hHPf6j+eoW3Y4/MCtC0M4aoIjQKzCZxj?= =?us-ascii?Q?XOVCmVRmBfjjn/B0OzJF+BYiX27sJ1X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nnLvWc/AAA4uQ9hVSNzGtrtNS8EVGI+dG842wVl1dFta0/dEs2ull6jgsqYFXcqBr8Cy3hrCZinmgEKbvZxEivnyecGhNoFzRUDyUDTyMFTEaEkFnwc3XVNSQ0tjZArvODVwfozzowXtE5ZBTf5sDNyDAfC8HC/SURErPgHPN+InUrJ3GGNjBlxIs/KR X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2018 17:12:44.7841 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a1a18839-4ed1-464e-2bc5-08d5e81aafdc X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AMSPR04MB342 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There's no need to explicitly cast DPAA2_ETH_MFL to u16, so remove it. Signed-off-by: Ioana Radulescu Suggested-by: Dan Carpenter --- drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c index 4ae2371..da993ed 100644 --- a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c +++ b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c @@ -2366,7 +2366,7 @@ static int netdev_init(struct net_device *net_dev) /* Set MTU upper limit; lower limit is 68B (default value) */ net_dev->max_mtu = DPAA2_ETH_MAX_MTU; err = dpni_set_max_frame_length(priv->mc_io, 0, priv->mc_token, - (u16)DPAA2_ETH_MFL); + DPAA2_ETH_MFL); if (err) { dev_err(dev, "dpni_set_max_frame_length() failed\n"); return err; -- 2.7.4