From patchwork Wed Oct 26 15:13:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Liam R. Howlett" X-Patchwork-Id: 11304 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp330032wru; Wed, 26 Oct 2022 08:21:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7DN1PYmuwRzrPgWtL8mKDybGERafyRlwWVJ1M16oCzyLh5OSsSRv/5arzdP77r0UZFNGZS X-Received: by 2002:a17:907:a072:b0:7ab:23e9:bc1 with SMTP id ia18-20020a170907a07200b007ab23e90bc1mr11001345ejc.72.1666797687347; Wed, 26 Oct 2022 08:21:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666797687; cv=pass; d=google.com; s=arc-20160816; b=kQ1byMX8ZCs9pyIOomHWOIivOV/0UOQYOdTyvXyh2iN04dSC8PIGbruKJGy+12QoF1 mydposTh5/jeGpio9idUDSdR97c3Dn7xxuk4HM5YeNMUt2AFYGIk5K3DEi7EQNm7tF9r F3t4u1cBU8cRR2ztID9/Q4uWlYoCfImBSkf+t06CTNsyDLPejgN1QudM8PaCNnTgArRv lakPsBu12mtF03TWltihZsPpG1OQbryt2kucDJgHKBJPY2Eh+CAt+ltk3g+DNM/Upx8D 1bK2W3+r0ZVnzD6YAJIRlmUDTinweLtzbUy/cMDvO7yw8htNc4P0mmhHPSpCNkDcrSp+ gBWg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature:dkim-signature; bh=L3MpZAGgwYrq4FXHQVBDRnmkoENaGNjvxUgeR6UA1sU=; b=J3qE71DKespCRB5fWaWCwFzg8DRF/FCadYPBDNO/NNR6qjz6Ti3ZUVl+Ng1C8Kh+rN ajNiTpVhF7xhyn0LOv8NyFYyyMUvVwmX6lxQfx8tfzELhi77ayZt79OeUsj4YIFjbFXw mMYtd8wBIF2vc58IXg6xAu7BGsJgjavNzIeIr+Yt1zf5mZsb9JaUpSfDnq984s1QBnvZ hiPjt19WPPpudglpMsEHbsK3MvtoIocXxucyyiY52srpUN/N+JnAB4ePoNlvmYkEfqeE VUPso/AWRnmmNzLVdzErQcWdtaI8kVTa88DZRxJUg6m9uUCukHFbElm9J8ephyn/QYSY C2dg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2022-7-12 header.b=gdRcyq2q; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="pr/qWGkd"; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nc26-20020a1709071c1a00b007891fd91786si5503030ejc.151.2022.10.26.08.21.02; Wed, 26 Oct 2022 08:21:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2022-7-12 header.b=gdRcyq2q; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="pr/qWGkd"; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233807AbiJZPNl (ORCPT + 99 others); Wed, 26 Oct 2022 11:13:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233473AbiJZPNj (ORCPT ); Wed, 26 Oct 2022 11:13:39 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30D41127928 for ; Wed, 26 Oct 2022 08:13:38 -0700 (PDT) Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29QEDs31001643; Wed, 26 Oct 2022 15:13:32 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=L3MpZAGgwYrq4FXHQVBDRnmkoENaGNjvxUgeR6UA1sU=; b=gdRcyq2qHKqqBKxMrDJHEp/EUQ5iNwK4IXtWXEk9DsAXjIvknGDAaf+G8g8yAU0aOla2 ZVmsMP6tM/8Pxtz5BsLkwGUya62ySFNApq6jiRfV6xV76q7w1Po68erYKVLJzaMGAcC8 4XSm0Zc1L0YoV5X7ugRG4iHVKY96S4cJfaXNSrfqbPgEdq6D77ovIHzCGEneSCtNe9Ek KAzLmVd3UQApe/5sJuFgoTvoKZvuvp9Pnz6+sXh5ZbU4188rV51xpIoA+Bd8G1SzOou5 F+MbtRnbQV9b/v8B+4ESIOu64/Umm1+mtmOWG0YtQFW3XNWHRbG7KZCpAclY7NUl5TZK 9w== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3kc6xe65jv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 26 Oct 2022 15:13:32 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 29QEeCgw008030; Wed, 26 Oct 2022 15:13:31 GMT Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2104.outbound.protection.outlook.com [104.47.70.104]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3kc6ybnbg4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 26 Oct 2022 15:13:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=He9nBfEFsww0owQwAcqEoRUhimzkNoq2bgRBmMaQguvv7CIgkalzrdcJNi3M9Wu1QSUP9a6Zu/XrnXgB4xKOpIBxyvcA70UbLX40c94DNTQdnGLaSk+hA9xSbAgSmolGwJ/14lmyNTRH+rokj0j5Ake58AbP6DHh5rb2buYiMx99aPz7oqLXMoKWgq3HmtRX2o7JeEjLNvLYoU2XfZcMglTPBhsKjqK9IhTrBIYaYGqpztU6uOI6IwIFkYB5KoKmGylv9VAVI/+IQkSyZg0cpcTrIvWabNeXD0ASz5FzWqhC4M5ZLIOAXbz2rg7lhqUtvL/BwWrGyCV6frZkhpst+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=L3MpZAGgwYrq4FXHQVBDRnmkoENaGNjvxUgeR6UA1sU=; b=Ms74geysHgzZNHe/8pVblt8mB90tYL6xBh02Yjv5uzJZhYeupBxklK4VH2BICPJ09/akIkzrI0/F+veSSw2A7aN4pwZHtkrlLCRjv19vaGy8ZLdV9F/ffmNCEJm8ythfB7g06c6cruhI5OAtEoBOV+DQnDUWwfRpADnPURru40n7Ox6uKeLoRKLeCLo6BmoSg8ynd1hd1qxO9JNw57Hu+Bx4LroO+HbDFUV/gwoKb1wLi73SYISTSp4RqXTJ7UN18AEoZYdBNrRvfrV7BmtjSZkYDQtfU+Zr1TP8bzIGX8ywUQ6Sb96BWPPXpPp+kb+LOkunjNzlHbob+JeyKvy8VA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=L3MpZAGgwYrq4FXHQVBDRnmkoENaGNjvxUgeR6UA1sU=; b=pr/qWGkdpVnn79HIzNi/IGNPGP0Y71gR5SEVIPaN3Z2+6ZJqxVA8wYaDi3qp0f2LSgqnK9sKdV3H0J83+1R1HrfrrZNYSB19S1FEsa1rtJCwAMiws9zifjIO54lx/l5EYki4BZRCfoEgROuEhXXdBb9YcmkJGKy9lFWxgVzDWWM= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by SJ0PR10MB5741.namprd10.prod.outlook.com (2603:10b6:a03:3ec::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.23; Wed, 26 Oct 2022 15:13:29 +0000 Received: from SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::f378:f1d0:796a:55a1]) by SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::f378:f1d0:796a:55a1%3]) with mapi id 15.20.5746.028; Wed, 26 Oct 2022 15:13:29 +0000 From: Liam Howlett To: "maple-tree@lists.infradead.org" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Andrew Morton CC: Liam Howlett , Lukas Bulwahn Subject: [PATCH] maple_tree: Remove pointer to pointer use in mas_alloc_nodes() Thread-Topic: [PATCH] maple_tree: Remove pointer to pointer use in mas_alloc_nodes() Thread-Index: AQHY6U2AqiEOMPyXNEyBbCG3B2KUjw== Date: Wed, 26 Oct 2022 15:13:29 +0000 Message-ID: <20221026151241.4031117-1-Liam.Howlett@oracle.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.35.1 x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SN6PR10MB3022:EE_|SJ0PR10MB5741:EE_ x-ms-office365-filtering-correlation-id: f018c842-75e4-43a5-9c45-08dab764a36a x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: FEmni/cAr8kGfHvjOCId2U3TC674FCT2dP9FTBHzlr945IdMOcp7NWECGYpydrm7aczbUUJbV2sF5MmE0bdGjhTKWGFhskbcxLZMjLaLDI3OZ9bpldUGxJJ1O+MSverOgfR/HfvYqXtsrDmUpSVgNZRw1EtJX1Hqy/CP5Nhhf5YEcr/Y7lhWGNPTYOmFr9X4dreEZD6EBfM67RTc7J70Cv6qgyoBaYv9Oe2EsbdKqB5Ui5MhhP6R5JNyxposA0V9e7JZIX/b4eBsbv6wNLYkC/x5ZEyzz+kW6IrzJPkxpYDJb24YCfi3uFkU+S6KJdGx5I2vB5eY0jR6cac+90O68hkZ6aKg6Eg0iEXhJKeY5Jqdk1U8BtmZvB7v/K5eQIgGTGmghPaNW7DtUw4P7570Y6vNH2q+tiI+Zd2qOseTk0mCv5+7P0wdo8uJNSYgYMIpSkyfr8xOmH7eSX08Ch2/z4iuDYQSgOWCSSFcQUSv4wtng25QX2hJiaX0VtLjZPQQAHDL5Lx/M/XB//wsrQF8Vgloas0xc7umxpWEvpn+HbleK21MLwq+loFwq6hTj0XpKBWfT5g0VHLZ8pS50ucrIDLN7mGWqnV8Ih2090p7a4mLKVbfmunFdortvXpSq3QSfhbUxaz7mVLACwoniacTsJ0uRdaVXOst3qJ24BkX2SLuduxZ68xU0eo6vv1Yq1HCqbHv9JnGoKJfjawqx/TXgfmUhk8BvqBIcLuLBEZG2ggpJLhwo1S10bxwhFvJN549frCVjFNL/w3bStNvgJht7+lCrblDoUVJAg63nM6I4JVMU/0tgD+uhN/I5z++xQ22 x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR10MB3022.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(346002)(396003)(136003)(376002)(39860400002)(366004)(451199015)(36756003)(54906003)(6506007)(38100700002)(110136005)(83380400001)(122000001)(41300700001)(26005)(44832011)(6512007)(8936002)(86362001)(38070700005)(4326008)(2906002)(66446008)(66556008)(64756008)(316002)(66476007)(66946007)(91956017)(5660300002)(8676002)(6486002)(76116006)(478600001)(71200400001)(2616005)(186003)(1076003);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?3AORLydGvkVXcXABF2hF9KA?= =?iso-8859-1?q?EvmXnIuI3wu5qYEMLoGbbNz7b/5od+FWkL1vRs52h1WRbSD9+zqJhbyj9PSo?= =?iso-8859-1?q?k0bV5Zkczrztd79KZC51decKnh1HeEfPvriYXLY6hMqu5bHXnHYtw1mH8nr6?= =?iso-8859-1?q?Sh2mucORiP5xBqM1lq8CZPX7aospJpCCK0acs9o1GGUc8wpJkDAcolVFjUrz?= =?iso-8859-1?q?eAhZfUYWVVYBG9lXF9jnh3t1Oo77qioDPV3oiOHzIhfYKDu+t6ReIMrgnQwp?= =?iso-8859-1?q?SjU9a/SPZA3/M/ExQItgqVN/ZIvyuvMAmoSwt2UXTsQgoHnlRmFwKO0vm7EO?= =?iso-8859-1?q?qTdXiz712QxH/sn7MUQxe5MeseDhf9Hpsi3U8SRgpdnPg12ksGJ9nH1ju1Ys?= =?iso-8859-1?q?DMd8ZWgrjKkSEFiM8/5/EylkQYu4ECi683nPeXjwYePTAjdX5E75/A3B6dsw?= =?iso-8859-1?q?syF+57HudzuONDAZme+3kRpUVi34Q+2aXz+mBDN32qYwoRIbXyMgYaK3okqE?= =?iso-8859-1?q?LFNe/kdKY9RttlakNyZNnibjcLRPRJwKm7ePDrEVQvRqnwbOCePe0LDRx/3u?= =?iso-8859-1?q?iPA4CVoHi/kBvTX7UoPTJzSzdnQpkJdYTfO90XV1mZNx8NhjcayRmfn65k+W?= =?iso-8859-1?q?GuywFUyMxwzNNyWPzo7v33gzLFMEHAo7ddJNZpHjCBKwEy85mVsak36B8q8S?= =?iso-8859-1?q?XEAcKBxSj+d97XFpQYXGoEP0kqnNZgLuPA/BvQD2LKspdU0N6H/LqZhIBtuN?= =?iso-8859-1?q?K9YaHDLvCxWp+zI0GDpYh7TpfohU/UyMp3Gjz69Th2RgXz2lsd3k7ZEV4jJ9?= =?iso-8859-1?q?2785OVRxEyPb1gwV9mVdYz/QzKxweBU1d5tAED67fexEPyyz6OiLp3vlqyU0?= =?iso-8859-1?q?AXjPCUWfwfET2Jo8g1PY8TFhTWEY48kowE2jcSTid/13cJDu6gDU0O1QkgEG?= =?iso-8859-1?q?nz1+bwDLWEmYM4LKbTEzkAXAtlAqU2TOVFrybZqIOhPPjawtRdTwel3auXa6?= =?iso-8859-1?q?AhAEeSD6RZnKCmik9I6EZjZC+03tHq6g+Tg028+SnIGjG93y457CysDqdDWg?= =?iso-8859-1?q?GLHxfSguZH1XqI880ze9VlRJeRugd5unl7/8+0miZ1rc1Hq5euwWmZI28b9Y?= =?iso-8859-1?q?PHNGAulCLkfsWq7YqB0DQNWwVw5aFGFSnROvV3rdpuFLx2nj3IarMfKNsWSP?= =?iso-8859-1?q?opMgXJQenWWcykLMbqxLBmRKGFBCYYRasxG9E+LeK5rlU1s38kFMSdmdYbhw?= =?iso-8859-1?q?H+wHKT+6I6lJuH2hBcpxrn/uf2beJIxMqkZbPHgb2wRacSos1xy67S46YeF3?= =?iso-8859-1?q?W5NOHNFc0V4MqqVCGStpiCcj4vQFKuM3VUrm3P31NGbkpWcmRrXjEdJy8Hk5?= =?iso-8859-1?q?WCZN0MthdgyfjAW+iAFzHNJFW2gniuTT3WO+pb1xGWPD2/QVgmO63piw3H6R?= =?iso-8859-1?q?wE09ZSXLNoQJyTyUc+Doqi1jqPg7bsmK4NMyRb9+3ZQ9XSqQBKgkWU6iuDgV?= =?iso-8859-1?q?dK/7Bs3o4PT695kycNbMcGFZo2dMQ3IIYiBP0YrXbdlkOAh3X/IeQraK7ste?= =?iso-8859-1?q?cT4L80ceOFx8Wrp22Zu2IITjBXcHnOc13twoA1FpmRLzhCdprSNU7kXKTiUr?= =?iso-8859-1?q?MnASL5c95tGsd9U7lPtCroPeJrUVSO1l8FRR2Bg=3D=3D?= MIME-Version: 1.0 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f018c842-75e4-43a5-9c45-08dab764a36a X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Oct 2022 15:13:29.2319 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 40+35uKYZNilnjtbfM4I6wlxplnE6JvKRtmNyfItfQYYJhpgWs+LiG09j5Vcr9w9Dj9lHdSnskwkpKTzyPr6+g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR10MB5741 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-26_06,2022-10-26_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 bulkscore=0 mlxlogscore=999 mlxscore=0 phishscore=0 malwarescore=0 spamscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210260086 X-Proofpoint-GUID: ngKEJ7fVRYk4rZySmmOd436kAgeDlOFr X-Proofpoint-ORIG-GUID: ngKEJ7fVRYk4rZySmmOd436kAgeDlOFr X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747764052268478545?= X-GMAIL-MSGID: =?utf-8?q?1747764052268478545?= There is a more direct and cleaner way of implementing the same functional code. Remove the confusing and unnecessary use of pointers here. Suggested-by: Lukas Bulwahn Signed-off-by: Liam R. Howlett --- lib/maple_tree.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index cbae5b1c1a62..6f3945654baf 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -1205,7 +1205,6 @@ static inline void mas_push_node(struct ma_state *mas, struct maple_node *used) static inline void mas_alloc_nodes(struct ma_state *mas, gfp_t gfp) { struct maple_alloc *node; - struct maple_alloc **nodep = &mas->alloc; unsigned long allocated = mas_allocated(mas); unsigned long success = allocated; unsigned int requested = mas_alloc_req(mas); @@ -1259,8 +1258,7 @@ static inline void mas_alloc_nodes(struct ma_state *mas, gfp_t gfp) node->node_count--; success += count; - nodep = &node->slot[0]; - node = *nodep; + node = node->slot[0]; requested -= count; } mas->alloc->total = success;