Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3292569pxv; Mon, 12 Jul 2021 13:59:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnpOcDJ8cJqBZovSajmVSvYER67+WZ1Bl/RC22n2S6z7hykhZmOugv9R1i25SZvNNHKhls X-Received: by 2002:a05:6638:d0e:: with SMTP id q14mr782914jaj.13.1626123589186; Mon, 12 Jul 2021 13:59:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626123589; cv=none; d=google.com; s=arc-20160816; b=stdQxRNJa5Jl/Mb4aTwi9V+gFQYq60R/G0XBs6zirDAUqhV2VYkCvDDXH8rPgGPOcO ZGrXQt8dPAQxnQ5H0x0Zj+V5oJjUo2dSvcJrDGJ69ZyUDUp5KdtiTIzHlSXzg+yHDGLv R0YOZrKeqnWX0YXkVZgTUhqLvHU6nG+AuiUSF8m2KNEC46azFKZcZGuw/K+16BAteGrx 0vl05vETu1h2JtNOrnr0CpC7UPeU9/vWM0Bhr11nhVLMC/b7fV+eNpBgbdUALZcMyLKc I6xANsWeF/PA0wmMp0fm84GN9Q1Q3sPaxq7D6FfMLIC9jUdKvUdkEDv7XQpnoZ1fZXFg F4tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=niPBD0dyIRlA4lqz51opoLGOWtn9Dc84UvoyaPFlzT8=; b=OHqQGoQ3ZcihPByXdb5Thso92hQ3Ufp2oIryg2tur+ijZkOt9xZA5WNuorAw3ydlRk rwY6GdVbnjR5s7p2QuipsglCps5IE4lDUo7VgDXQry4zqIOXf7PMOXCMKtaPFgGOZV+O rZfhBv/kK7hVIH+VNgtXNQHkQ4DgDmIXZhEWnNCDXumuSFUwcxfReG4YVjbvOHM8zOby vMrD2P/LHz78EYrOTjWcErlcx8LYTZWZfXXsxjkg+dTnu8db1Ey5ksUAj5OcA9+ZZ+Iz yWbPz2wX7w8bgdXC0hA2zuqursZJ0omBNvFNOs1mPGT+NKnEeb6gOOO8ljmkhq5Bmitd deHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RnFo+wQ8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v18si15903539ilc.155.2021.07.12.13.59.35; Mon, 12 Jul 2021 13:59:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RnFo+wQ8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232890AbhGLVBn (ORCPT + 99 others); Mon, 12 Jul 2021 17:01:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230087AbhGLVBm (ORCPT ); Mon, 12 Jul 2021 17:01:42 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFC97C0613DD; Mon, 12 Jul 2021 13:58:52 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id w14so18327332edc.8; Mon, 12 Jul 2021 13:58:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=niPBD0dyIRlA4lqz51opoLGOWtn9Dc84UvoyaPFlzT8=; b=RnFo+wQ8P2EPP8bazMkfuIYGmLPacXotdtq8qwi3xK9no4vxANxfbhrzuaHXhSy78z YJMUnni+1rBB04/j9ZkahnXkjoVA9mV8ZmnlIIyg/KgwyaypGkWDmeEWmT1+XWy0OMNb KNlMXAPFyPpAH+bw8OSWvm+nPoST0HeMjdjTVm0q1ndM35HwZTR1GMcZ3LaYfxh8+qtW 4T0HG0hU2t+CU1gMBo0CzpUbLg65eYyL/5CKAR8qEN7cESvP7Kh3QJBaHa4gAiKhAQ93 xoLv5AP6L7IyqkRrhVoQhB5kbirKebONyYg7cs0xanlX5u3ocs2NDZlC63jJmn3N+NTE UKxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=niPBD0dyIRlA4lqz51opoLGOWtn9Dc84UvoyaPFlzT8=; b=S4KbD8/ehr5jSEG+dKwOzBHGwfVqjTHajI8VVGYsNt1uj/W4fyKv7bCjQLzBOXzeXe 1i8fuj4pT8PGknLnXqfevBdEhwDsU10XFIqPPzg1hzen/RxCaWMybjQyIxa1J6M5vPl5 qcUZswA9rF0GFcnA6/lwR0G5xiyBw8GFu+FJJH7QgUGx3hyEUcmEZUW+Oo4oiZzbsPRe ZjfAsN5tYADLW9Fx7GXrPy6t9s64dSq4vU6MUvxcZCU2lAXYI3ggFNelW2UY5pq1l9Tt s+nylj7VCLZcXH+LwCKcRU5cMSLlzEVXvx0gH/ah0fNCO2y/mEovzNY3ZVI2leal/CPg PGQg== X-Gm-Message-State: AOAM531c7/yfNKOIofBTUnX9KGXDohGn4FTKys9hU7jvD8GvfkdPEn06 wBGA7Gq+q+A6cdIKgxyoH8F9yqdTZ4m6EA== X-Received: by 2002:a05:6402:40cf:: with SMTP id z15mr967040edb.175.1626123531203; Mon, 12 Jul 2021 13:58:51 -0700 (PDT) Received: from pc ([196.235.212.194]) by smtp.gmail.com with ESMTPSA id lz19sm7196288ejb.48.2021.07.12.13.58.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jul 2021 13:58:50 -0700 (PDT) Date: Mon, 12 Jul 2021 21:58:48 +0100 From: Salah Triki To: kevin.curtis@farsite.co.uk, davem@davemloft.net, kuba@kernel.org, stephen@networkplumber.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] delete useless for loop Message-ID: <20210712205848.GA1492971@pc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Delete useless initialization of fst_card_array since the default initialization is NULL. Signed-off-by: Salah Triki --- drivers/net/wan/farsync.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/net/wan/farsync.c b/drivers/net/wan/farsync.c index b3466e084e84..0b3f561d5d5e 100644 --- a/drivers/net/wan/farsync.c +++ b/drivers/net/wan/farsync.c @@ -2565,10 +2565,6 @@ static struct pci_driver fst_driver = { static int __init fst_init(void) { - int i; - - for (i = 0; i < FST_MAX_CARDS; i++) - fst_card_array[i] = NULL; return pci_register_driver(&fst_driver); } -- 2.25.1