Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp2286569imc; Fri, 22 Feb 2019 23:35:31 -0800 (PST) X-Google-Smtp-Source: AHgI3IZfyxRjv1W5UDbo6om+PKZ/MgrD7iOU+BX/wEUgsbk92TXmormXWJPUkYiV/Gnon3Jr5NL5 X-Received: by 2002:aa7:83c2:: with SMTP id j2mr8177810pfn.119.1550907331302; Fri, 22 Feb 2019 23:35:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550907331; cv=none; d=google.com; s=arc-20160816; b=emLVDu/B0ox/FuDSkTuZqAqF7PWDou4Jq3Ta0shZSAuZzCedwG7EBo9Sevb/FZDqnj nIbMW7oKkV47hn/A1d/naKPNWCxOgN+F+oOLEx6yxnFUtSU+p7y36y89CbdzarU2izI5 FzH64CB0Dz0BMing+VX9zlT+5GwGrMj0v1RyApIUpTCmU1Z3zPZRfVtEA6svbddUP2cG QZ+jLMt1j6InFCVuTuqE0oTvRZ7BkDhn2VYF1M0RKHuiqWktySdxpBUNizh+Lc0PF62f SW4l8EtG376gzVyFA3duIPWsx13Oc5+cAnj9U85oyDtLC0rTuu7ZvBo3pITbKMs2w/uX qEjg== 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=odhp/8XXFG+hv1+3VVaZ1sBHS3feR+ZpFjJZAyYVhG8=; b=oz+nI6pa/oMTDbaMn1IpzpgldbnLnnYMuJADDf2TQYP9TLjYdLB5GnJAlETtgoQQ3T 5qy60ciZkM1ww/n0qGe6v0QRWWUGSRKa/s5FZeHTJzN2G5j0Nv2vkW4Zhf4XiN+kP0Xz xVhBBDXRUh0ExkD4Rzw2276lcC9i/EoR/iE7CwV/fbLibaZlxgXbE3Rw8iRzyD2/MQqI 7wBzJ/XIrWofE3co05dIAkwlzBPkcYZeZUDeKXSx4TNrKi3EzhDTx2sSI2Pm8JTZla11 yLsDSBw7y15oA1bd2rWTYxr+Ya77pwIKOW7u+bNS7mVZGyeVgrmWxfJfBHJ5LxOR5S/P HAVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BAXGlboE; 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 x15si3389406pgq.378.2019.02.22.23.35.15; Fri, 22 Feb 2019 23:35:31 -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=BAXGlboE; 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 S1725900AbfBWHez (ORCPT + 99 others); Sat, 23 Feb 2019 02:34:55 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:42642 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725785AbfBWHez (ORCPT ); Sat, 23 Feb 2019 02:34:55 -0500 Received: by mail-oi1-f195.google.com with SMTP id s16so3555623oih.9 for ; Fri, 22 Feb 2019 23:34:54 -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=odhp/8XXFG+hv1+3VVaZ1sBHS3feR+ZpFjJZAyYVhG8=; b=BAXGlboEd2zUbifpJuxLT3sOEAqeUeZjIomNz8KtKsMDZLUuDnsqedQ4Djr5B/32cH iCDdeuktyA+yCAsVNM9EAARUx2IVZG1VWGWADuTtGp1ybFRxNQ9yIr6eOWVwP6U92xpq e9SUy5Mf65+7vW0Rfpsm18+oufAJDF1LOaKopBdVMHD+lRejiVBEt1T8V+UGFEPYoQVi z3gyMCwjFYen2Spv9xGcKJDt8A6RKPN97Ei++aMZuBhOEJkyXd4LgFkkoPPmOl0jlPDy sYsf5up7HKlDElYckO3A/Nh75eTPDFYlSjPoMglNStHxmWpm+KctnJngmIgcj2U3qawv 1mEA== 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=odhp/8XXFG+hv1+3VVaZ1sBHS3feR+ZpFjJZAyYVhG8=; b=DHOIZD5fGGkGkIa6rKtC/iRA2ccBQlUYePU7vmUCs467hSOW+qOFGQxUUw8tT8MmRj SGNCZ53/xNFSvzgM7Cr+Aoawb1ilF9rDH7D06hCzPNpc9RNe94Szyyj1Qr1YBkNdb05V BuofVbpLxPKEMdpDUdTW6fpJHOOQ65z1jED2NV7iJGo+hDteeyh4yLHjuDzYbKbZXDaY eqK98eVHl8NDUkvitRx0ZO5eIiQbVUK+0QmJ0ZGyNK95isVOm8iuirEGSaZDX+yeRil3 TfwbIGjHQzshOj+1SaqedgbzGStZdtBRlmbOSSlzjAiPxhfD+tzzc307DyndwO8gETVI Td6Q== X-Gm-Message-State: AHQUAuZhm57eCXg4gkMMSkpomVmwvGrg2aO6OiTmZNe4Yx6OcJsA7Emg R5RdQ/xt07uhNBBfMxOj3WZBjT26814jln0h4sU= X-Received: by 2002:aca:d746:: with SMTP id o67mr5066777oig.100.1550907294056; Fri, 22 Feb 2019 23:34:54 -0800 (PST) MIME-Version: 1.0 References: <20190223072712.18422-1-tsu.yubo@gmail.com> In-Reply-To: <20190223072712.18422-1-tsu.yubo@gmail.com> From: Sergio Paracuellos Date: Sat, 23 Feb 2019 08:34:42 +0100 Message-ID: Subject: Re: [PATCH V2] staging: ks7070: removed unused varibales 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 8:27 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 > V2: fix patch format As Dan has just said, this two rebase and v2 stuff is not needed in the changelog. Please, put it under the --- cut off line. > > 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 > The commit message is still wrong. The driver name is not called ks7070 is called ks7010, right? and also the typo with "varibales" is still wrong... Let's do all changes right at once, please :) Best regards, Sergio Paracuellos