Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751824AbcJAOzc (ORCPT ); Sat, 1 Oct 2016 10:55:32 -0400 Received: from mout.web.de ([212.227.17.11]:62308 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750951AbcJAOzW (ORCPT ); Sat, 1 Oct 2016 10:55:22 -0400 Subject: [PATCH 10/15] md-cluster: Delete an unnecessary variable initialisation in lockres_init() To: linux-raid@vger.kernel.org, Guoqing Jiang , Shaohua Li References: <566ABCD9.1060404@users.sourceforge.net> <3a03df66-92ce-20fb-17f3-fb79b9d43c8e@users.sourceforge.net> Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall From: SF Markus Elfring Message-ID: <2d9e50ba-6bf3-167d-4752-46d6b4ea47dd@users.sourceforge.net> Date: Sat, 1 Oct 2016 16:55:10 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <3a03df66-92ce-20fb-17f3-fb79b9d43c8e@users.sourceforge.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:jO6Jx5zQJTZ/KJMwPddTAowo51KQkMGSsjNCMPajKCwV4Ytg5ph fREt5LZ+qFeIplF2v/Ym/aY2YlQAV4QyBvZ06hvYvzcfCdQ+vGqcKzVQUf7f3AaCAEN/mf2 wDZAh6WuysFvsx7hh0/Lpx+3zBD6Xoq8Y9ZIIEaWOP6h86CZuCY+lqynNhUWSxpBgMvkWnq mYT8VcqMtEZvcsJpg3hjw== X-UI-Out-Filterresults: notjunk:1;V01:K0:LJEgeGKej1o=:u6XlEF8yAXW3/1uoxRmqXE s0qSSMxerh3ZSsfCHkXnFnMUgZc5SD8GvpPw6WO0qXdI3Leq5QD1BZzShrKwsbJZk5Giy8ydA 6kn2uobt3/+058TWrZsQgonlEWeV8YILrcWEMfLGmIWr2dm4QSgo+Xp3QMcXv2Z0gzjjRrkZb 8fjEiumnKNKtVuIkHU3j5dDLnPNHR023fM+0Bvej4qIVRhgFgPdRs0TxDBvxGef8diVRhzgn2 azgdz1O+KcLMtPO3R2EKAsirpvQy4JKXUgRsZNq1gIJLYoF3Lv1zNeEd0xhUj2dj6pegGHaX0 K0s6wBWR83DdbpWx8/oS121bCI7C8H4WmGc9ieXgHi36KKNa4i8xV6DKdlDo94AwXCydaan/z emwGPEWxwCbpmSUl87hj7VFTuqdSFaSvoOKxG85ubSepIy/Cj4zFLpermAse6xutiCLfFWuDY JwB/BMW9wdLUtWlhlH1ak15H1Firx9vNwcIbtI+zQTj3ZrU3K1tvyEBTHWuPffQBTSmegdBAt kbGpswLS3vPJQjD2rcrZg7R4dU2VAomZzgZz6jSLwUm9GsCssRwshJ85sYVugN98i/aoHEB/f feoY8jkm/LHMp46Xz+WbUAu6xECObPW5XmGFxpNiVaFRT/MEcb5rJlRmny/iEU7w7DjlSLdY1 T3EBnjw5ZvZyOpFIyT/jfAwScJj5H757V16XY6+FmWUMj6SSlmjxnkW5nlspHaa1iYscOlLG/ X211sM7LUv6dUMlud9YVQYTJrj6xQOyYb4LzxMveQ5kSZrqSO4sHdpqq8VzB1Yz1VKPLDxTAP w9G/t9T Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 921 Lines: 26 From: Markus Elfring Date: Sat, 1 Oct 2016 13:07:52 +0200 The local variable "res" will be set to an appropriate pointer a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/md/md-cluster.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/md-cluster.c b/drivers/md/md-cluster.c index bec8035..b91b552 100644 --- a/drivers/md/md-cluster.c +++ b/drivers/md/md-cluster.c @@ -186,7 +186,7 @@ static int dlm_lock_sync_interruptible(struct dlm_lock_resource *res, int mode, static struct dlm_lock_resource *lockres_init(struct mddev *mddev, char *name, void (*bastfn)(void *arg, int mode), int with_lvb) { - struct dlm_lock_resource *res = NULL; + struct dlm_lock_resource *res; int ret, namelen; struct md_cluster_info *cinfo = mddev->cluster_info; -- 2.10.0