fcst: Revert r4889 because it was wrong

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4931 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2013-08-03 15:14:19 +00:00
parent 4347530168
commit 1b94eecde7
+2 -1
View File
@@ -174,7 +174,8 @@ static u32 ft_sess_hash(u32 port_id)
return hash_32(port_id, FT_SESS_HASH_BITS);
}
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 1, 0)
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 7, 0)
/* See also commit 4b20db3 (kref: Implement kref_get_unless_zero v3) */
static inline int __must_check kref_get_unless_zero(struct kref *kref)
{
return atomic_add_unless(&kref->refcount, 1, 0);