Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7024578ybi; Thu, 13 Jun 2019 08:19:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqyi7t6OVzb1AJZRgalrtDgPtyjnhLKRQSpDe+AaqHmrrHOxTBP/By/TkXy/VrmYya09ccjF X-Received: by 2002:a63:591d:: with SMTP id n29mr30515876pgb.75.1560439157173; Thu, 13 Jun 2019 08:19:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560439157; cv=none; d=google.com; s=arc-20160816; b=bz2RZJAaZW/UIKyd9XwnT30p8/ZdLVTQ7vE2LaWAnNaw5rCvJQXks2QJvM+uU3VWfq neeiUup0lesRR5APznK7DoPJbvtA3DUy5XaswEnCxiq5tMRoapwpXdeV9fBQhNCpGJn8 F8ddrJMYqcqgHi6R4WxgAMj7gDdNqBTnwBXgxZLg1VgHuMjjndwTv4ZthJf3KUrbJZIj 1eqnoV31ZOL5zv16/Y4m4iNHUAhZWDfG+35Z9YWRdi2p6UCMnlmLerDpRrGR+T23NSEr Rr8yXzN0deGM+j3r+4c/7ke+OF2pK/VDf+PdOHztjzlPW+abm4CrfyM6XMH/hcU7fBL7 9BXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=IMHi2S1lxrVF5OO8+rdxLqeH/S1duFekzw5Tc0Z2mvY=; b=YMSLMWCz/M56ONVfEgtKPQpyEZ3lIe6om9kjPDdbtd6ZzTkXyUma/j7tZbCKi9ldUk 5HUuaosYie6kaUBu2nSjbgmrhmPL36EYfNMzGwE+B5Hop7dSmAcqKyJF3iDMUh7omfCX jlZTFR/jxK040rWGks5zlPGTKwwo7i4mX2Mvt0r9DtULRiPYZjcc+iwfQ5zFehQSsl9z gW01tj/sotTlY24XPbJv8Nanvoq3jtu02h0SMbSWX1NAGQKy1ttZrYn8BGACo7nvm2Yo QwnsRW/pD38IkkbBrtaqDdRem1nbaQMmI6Niay/PL7RUt26EKgMQ1U/C8+ldlXhj4ga/ iE6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nikanor-nu.20150623.gappssmtp.com header.s=20150623 header.b=N4m03+pC; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y82si3821023pfb.58.2019.06.13.08.19.01; Thu, 13 Jun 2019 08:19:17 -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=@nikanor-nu.20150623.gappssmtp.com header.s=20150623 header.b=N4m03+pC; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732168AbfFMPSB (ORCPT + 99 others); Thu, 13 Jun 2019 11:18:01 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:46175 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732170AbfFMNPC (ORCPT ); Thu, 13 Jun 2019 09:15:02 -0400 Received: by mail-lf1-f67.google.com with SMTP id z15so12349747lfh.13 for ; Thu, 13 Jun 2019 06:15:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nikanor-nu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IMHi2S1lxrVF5OO8+rdxLqeH/S1duFekzw5Tc0Z2mvY=; b=N4m03+pCMbu9cIv2a7fZuxt+riwezXCHBQP6t+cS21Wl5evRWUUURynTOleWnNYOkE dFh5/zk0/W1w5gUkw7QNUWfnuIG3VFrTzVuighoe0AliaSo/dojrdQiIGzIh4e8gMmA+ q1svNoPQueufLPULap69GDUh55Tvk1tsO7+7yDzwUyFvZ0zuUCdw8FPXPzWlBvDypzyB 3mHRZQ0gfA06yeWGWX4/6ki5lBx4ckZWjJuATAz5D5bIf+R3SwP1XZSGztwOoZYBjQNf lpWTthgmzLzVSEtDx3Zq73HzFBYtyVhmgtqZm0Q2b5h3a4TUHyaEVthAjKaqv1QIt0iX JG2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IMHi2S1lxrVF5OO8+rdxLqeH/S1duFekzw5Tc0Z2mvY=; b=ORqO/TcyHY+MgKdyTg8R0d8alTnOej8vrhstS5vR07336l2OCdVOM1VDtGgOknjeT3 T754O/w3YJD2WNzR1MIcFFEq+c//AZphokOuV+bFiI0otn9GXClnutrEmDEVq9doaVny WPMnhLXcseySrRba77i7DagOa9OF57ErYNIxnji5PDVSC/yQsZl+he6z9GmeY+a7ATIm uEZ4RiEXb59hXu3YTWHeMO9hpRz/TQzCbNsinPDiB+xrVuJcCwiZGIZ/tTw2N/M2uJ7T WC7SEMlJUJEcCU0lOwCCNWXxyaYf82bKBaO/SDH+OX9GlzdhIE9qYg1fhgcgwK7K30oD c9HA== X-Gm-Message-State: APjAAAVcczv2AmkucacxIpdg3MAqWt9z3ujDrYy+7kbcqGqbtM+8WdzH qoXXYyC60HXQTGpetpKZ49glOmiiT1V/2A== X-Received: by 2002:ac2:5212:: with SMTP id a18mr38106861lfl.50.1560431699446; Thu, 13 Jun 2019 06:14:59 -0700 (PDT) Received: from dev.nikanor.nu (78-72-133-4-no161.tbcn.telia.com. [78.72.133.4]) by smtp.gmail.com with ESMTPSA id q4sm124563lje.99.2019.06.13.06.14.57 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 13 Jun 2019 06:14:58 -0700 (PDT) From: =?UTF-8?q?Simon=20Sandstr=C3=B6m?= To: gregkh@linuxfoundation.org Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Simon=20Sandstr=C3=B6m?= Subject: [PATCH] staging: kpc2000: remove dead code in core.c Date: Thu, 13 Jun 2019 15:14:51 +0200 Message-Id: <20190613131451.21661-1-simon@nikanor.nu> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes checkpatch warning: "Consider removing the code enclosed by this #if 0 and its #endif". Signed-off-by: Simon Sandström --- drivers/staging/kpc2000/kpc2000/core.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000/core.c b/drivers/staging/kpc2000/kpc2000/core.c index 6a5999e8ff4e..610ea549d240 100644 --- a/drivers/staging/kpc2000/kpc2000/core.c +++ b/drivers/staging/kpc2000/kpc2000/core.c @@ -223,15 +223,9 @@ static void wait_and_read_ssid(struct kp2000_device *pcard) dev_notice(&pcard->pdev->dev, "SSID didn't show up!\n"); -#if 0 - // Timed out waiting for the SSID to show up, just use the DDNA instead? - read_val = readq(pcard->sysinfo_regs_base + REG_FPGA_DDNA); - pcard->ssid = read_val; -#else // Timed out waiting for the SSID to show up, stick all zeros in the // value pcard->ssid = 0; -#endif } static int read_system_regs(struct kp2000_device *pcard) -- 2.20.1