public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Charles Clément" <caratorn@gmail.com>
To: Jiri Kosina <jkosina@suse.cz>
Cc: "Charles Clément" <caratorn@gmail.com>,
	"Andreas Schwab" <schwab@redhat.com>,
	devel@driverdev.osuosl.org,
	"Jassi Brar" <jassisinghbrar@gmail.com>,
	"Greg Kroah-Hartman" <gregkh@suse.de>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: remove all code dependent on LINUX_VERSION_CODE
Date: Wed, 26 May 2010 08:52:44 -0700	[thread overview]
Message-ID: <20100526155243.GA5884@fujitsu> (raw)
In-Reply-To: <alpine.LNX.2.00.1005261339070.28092@pobox.suse.cz>

On Wed, May 26, 2010 at 01:39:42PM +0200, Jiri Kosina wrote:
> On Tue, 25 May 2010, Charles Clément wrote:

> > > diff --git a/drivers/staging/rtl8192e/ieee80211/ieee80211_crypt_tkip.c b/drivers/staging/rtl8192e/ieee80211/ieee80211_crypt_tkip.c
> > > index 65f4889..14ca610 100644
> > > --- a/drivers/staging/rtl8192e/ieee80211/ieee80211_crypt_tkip.c
> > > +++ b/drivers/staging/rtl8192e/ieee80211/ieee80211_crypt_tkip.c
> > 
> > > @@ -886,32 +711,18 @@ static int ieee80211_tkip_set_key(void *key, int len, u8 *seq, void *priv)
> > >  {
> > >  	struct ieee80211_tkip_data *tkey = priv;
> > >  	int keyidx;
> > > -#if((LINUX_VERSION_CODE < KERNEL_VERSION(2,6,21)) && (!OPENSUSE_SLED))
> > > -	struct crypto_tfm *tfm = tkey->tx_tfm_michael;
> > > -	struct crypto_tfm *tfm2 = tkey->tx_tfm_arc4;
> > > -	struct crypto_tfm *tfm3 = tkey->rx_tfm_michael;
> > > -	struct crypto_tfm *tfm4 = tkey->rx_tfm_arc4;
> > > -#else
> > >  	struct crypto_hash *tfm = tkey->tx_tfm_michael;
> > >  	struct crypto_blkcipher *tfm2 = tkey->tx_tfm_arc4;
> > >  	struct crypto_hash *tfm3 = tkey->rx_tfm_michael;
> > >  	struct crypto_blkcipher *tfm4 = tkey->rx_tfm_arc4;
> > > -#endif
> > >  
> > >  	keyidx = tkey->key_idx;
> > >  	memset(tkey, 0, sizeof(*tkey));
> > >  	tkey->key_idx = keyidx;
> > > -#if((LINUX_VERSION_CODE < KERNEL_VERSION(2,6,21)) && (!OPENSUSE_SLED))
> > >  	tkey->tx_tfm_michael = tfm;
> > >  	tkey->tx_tfm_arc4 = tfm2;
> > >  	tkey->rx_tfm_michael = tfm3;
> > >  	tkey->rx_tfm_arc4 = tfm4;
> > > -#else
> > > -	tkey->tx_tfm_michael = tfm;
> > > -	tkey->tx_tfm_arc4 = tfm2;
> > > -	tkey->rx_tfm_michael = tfm3;
> > > -	tkey->rx_tfm_arc4 = tfm4;
> > > -#endif
> > 
> > In this block, it is not the same branch that are kept, don't you want
> > to keep the same ones?
> 
> What difference do you see?

Right, the branch are exactly the same, sorry.

> -- 
> Jiri Kosina
> SUSE Labs, Novell Inc.

-- 
Charles Clément


  reply	other threads:[~2010-05-26 15:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-25 10:01 [PATCH] staging: remove all code dependent on LINUX_VERSION_CODE Jiri Kosina
2010-05-25 11:08 ` Jassi Brar
2010-05-25 11:18 ` Jassi Brar
2010-05-25 11:55   ` Jiri Kosina
2010-05-25 12:09     ` Andreas Schwab
2010-05-25 12:16       ` Jiri Kosina
2010-05-25 18:02         ` Charles Clément
2010-05-26 11:39           ` Jiri Kosina
2010-05-26 15:52             ` Charles Clément [this message]
2010-05-25 18:06 ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100526155243.GA5884@fujitsu \
    --to=caratorn@gmail.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@suse.de \
    --cc=jassisinghbrar@gmail.com \
    --cc=jkosina@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=schwab@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox