Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp2258780imc; Fri, 22 Feb 2019 22:47:46 -0800 (PST) X-Google-Smtp-Source: AHgI3IZOI954xeJhnCZ7R9TbiImYPeU+VpJHqH6Xa+V80dn2DER5UYuPAmyDH/6f9i448IcF+DED X-Received: by 2002:a17:902:8203:: with SMTP id x3mr8053531pln.159.1550904466792; Fri, 22 Feb 2019 22:47:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550904466; cv=none; d=google.com; s=arc-20160816; b=msPz1lewETgMkVdjSBa0LRFFF9ihs3BZYWhteNpGhy9VHU+PvrCGUfxY/MlueOA72l 4BnQIPmCc1pttQZpCpUICJ4y1l8TMwRh731fI5g2+WuQqQenrWGKcGQhKA582aWcIhns gAN7rJS6xSZru4UWBSN+KU2Qv7rmKWtOtcWTVkA0dUP8J5J+qOXsgiXl3hRNuYP4e6F4 fow3ZvY5yI47oX1D5adTAw1TWrsoP5jLt4V6gpKE6yc4PCssOdkUbE8oTJuM7cOK9mZM HUHoj07YpwLikGnQxU8M5swzAbTiMz8e2EEKQX9bq1ioY8PTT46YzX7N1e1p0Ymv6fcu BgVg== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=WQYYwfUsX8qHp6XM/w6vKCS0c1JT3xEjAhAsJrtdcZ4=; b=n2iXMz91eLcrAA8IjL6srWakme+gs5ZMROUIRtwrA096cZiOts2ttOC8BXRv1yd694 DlN2fG9qfzHKs+b1ZtuXFzpTVDy/UOWhIzH6xewlFoEmfkUbNMT1CjpEnXPfZ3fLhmua ImQXv7+A6WLFq2izzHEH9O0F+02xOdNwpNxfCEVTnWgWWkgjPRnsL/9hZUkLI7k2w76V Onj5QwVtoUjyGdoFq2sHJWquSwK+gPmFAknUTO0bVkEi7HAX6zo7B5QnPWtRa0dnuvJ2 d91BjV9QalmaBr2hY2OVnXJk+k869yy7aWLlxBig336cS0igo2n9Y9Mt943ZRLcYsU/0 Y80Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tl7G5gW2; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p36si3101745pgb.432.2019.02.22.22.47.29; Fri, 22 Feb 2019 22:47:46 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=tl7G5gW2; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726138AbfBWGrJ (ORCPT + 99 others); Sat, 23 Feb 2019 01:47:09 -0500 Received: from mail-ot1-f67.google.com ([209.85.210.67]:44131 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725773AbfBWGrI (ORCPT ); Sat, 23 Feb 2019 01:47:08 -0500 Received: by mail-ot1-f67.google.com with SMTP id g1so3799915otj.11 for ; Fri, 22 Feb 2019 22:47:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=WQYYwfUsX8qHp6XM/w6vKCS0c1JT3xEjAhAsJrtdcZ4=; b=tl7G5gW29fuRrjAS6amSLkWYSqeCnpPvuEZ3OTlqoCz1IFS670kyNnr2rY4BBLTXQp YAdGFqIp/i/+NcSq42p2BGj83xVZJV/SdPrkWo0g9vLxHSNSFPSiL5VJMmLKnTzmft+f 8noYcij/8hND6yVlg6HFFn6KFB9hY5NvOugjIAOfqPG3EC4STDdk7IuB7kz9wzDMqK0m aZhk8fV/9WQLREpTup0Sh4cVFCEBn50C7i/hZ/Cp97pHqsr1c+lzJ0Rc1NWrbV4WhK25 gDuxbZd9lx1tmeeO89nTgbUmmEUL3o6lNo6KwDgTNL7EU1mGV1ZfkMd1S8BFlzQfOCAz U7VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=WQYYwfUsX8qHp6XM/w6vKCS0c1JT3xEjAhAsJrtdcZ4=; b=uS6/uVYYdccL6E8omhpu5YD0kKJ6uonF0FNHeTLvxvV6P1rncg2ha0wefgMJa8otYn T2bI38uYistZLJRMjfGlhi5qTMrNghO/0O72jdOZiQRHJO4jx2BdSActBd4B+zHwDLW5 CSz5RjxE6+cDTiKAm9cqvoxR5vs1BYqsQifldYGChVtTZgLSH+c8E3plgyrDnZXjkI+E cYuyliU/5ni/CulDvhMlpMZLJDypoYoM7dUtJOpqRvhfE1Ka0U/tUxkcLgZci09EepWT eHD9cEk83DxJrHEXdyqbP7zJr9dz5B/l1ICwBhiqIoYAWTO9JD67xZlOSSjXjz6zPURb Jxhg== X-Gm-Message-State: AHQUAubaW+KOFtZnj3LCpSG5DCsdl2RGT0Khd5ej6WvommlMDFsCGwgk bNpdBrPU/fcQ/aH3E4qEpAaROXWLz051a06CDLE= X-Received: by 2002:a9d:130:: with SMTP id 45mr5323041otu.355.1550904427850; Fri, 22 Feb 2019 22:47:07 -0800 (PST) MIME-Version: 1.0 References: <20190223063939.18261-1-tsu.yubo@gmail.com> In-Reply-To: <20190223063939.18261-1-tsu.yubo@gmail.com> From: Sergio Paracuellos Date: Sat, 23 Feb 2019 07:46:56 +0100 Message-ID: Subject: Re: [PATCH] staging/ks7070: Removed unused varibale To: Bo YU Cc: Greg KH , quytelda@tamalin.org, devel@driverdev.osuosl.org, linux-kernel , yuzibode@126.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bo, On Sat, Feb 23, 2019 at 7:39 AM Bo YU wrote: > > From: Bo Yu > > Compiling the kernel with W=3D1 results in the following warning: > > drivers/staging/ks7010/ks_hostif.c:465:6: warning: variable =E2=80=98mib_= val_type=E2=80=99 > set but not used [-Wunused-but-set-variable] > u16 mib_val_type; > > drivers/staging/ks7010/ks_hostif.c:464:6: warning: variable =E2=80=98mib_= val_size=E2=80=99 > set but not used [-Wunused-but-set-variable] > u16 mib_val_size; > > drivers/staging/ks7010/ks_hostif.c:786:6: warning: variable =E2=80=98resu= lt_code=E2=80=99 > set but not used [-Wunused-but-set-variable] > u16 result_code; > > Remove these variables. > > Rebase on next-20190222 > > Cc: Greg Kroah-Hartman > Cc: Sergio Paracuellos > Cc: Quytelda Kahja > > Signed-off-by: Bo Yu > --- > drivers/staging/ks7010/ks_hostif.c | 6 ------ > 1 file changed, 6 deletions(-) > > diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/= ks_hostif.c > index d938b0997a53..913d8996437a 100644 > --- a/drivers/staging/ks7010/ks_hostif.c > +++ b/drivers/staging/ks7010/ks_hostif.c > @@ -461,13 +461,9 @@ void hostif_mib_get_confirm(struct ks_wlan_private *= priv) > struct net_device *dev =3D priv->net_dev; > u32 mib_status; > u32 mib_attribute; > - u16 mib_val_size; > - u16 mib_val_type; > > mib_status =3D get_dword(priv); > mib_attribute =3D get_dword(priv); > - mib_val_size =3D get_word(priv); > - mib_val_type =3D get_word(priv); > > if (mib_status) { > netdev_err(priv->net_dev, "attribute=3D%08X, status=3D%08= X\n", > @@ -783,9 +779,7 @@ void hostif_ps_adhoc_set_confirm(struct ks_wlan_priva= te *priv) > static > void hostif_infrastructure_set_confirm(struct ks_wlan_private *priv) > { > - u16 result_code; > > - result_code =3D get_word(priv); > priv->infra_status =3D 1; /* infrastructure mode set */ > hostif_sme_enqueue(priv, SME_MODE_SET_CONFIRM); > } > -- > 2.11.0 > PATCH commit message is wrong: format, typos and driver name: [PATCH] staging/ks7070: Removed unused varibale Should be "staging: ks7010: removed unused variables" Thanks, Sergio Paracuellos