http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=
5342b77c4123ba39f911d92a813295fb3bb21f69
was not really Kernel-version depended ...
So far this code section is needed for the changes added in SVN Rev1170 so we
would need to revisit this code when mainlining the driver.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@1171
030b6a49-0b11-0410-94ab-
b0dab22257f2
static struct slcan *slc_alloc(dev_t line, char forcednum)
{
int i;
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)
int sel = -1;
int score = -1;
-#endif
struct net_device *dev = NULL;
struct slcan *sl;
if (dev == NULL)
break;
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)
sl = netdev_priv(dev);
if (sl->leased) {
if (sl->line != line)
sl->flags &= (1 << SLF_INUSE);
return sl;
}
-#endif
}
/* Sorry, too many, all slots in use */