From: Jan Engelhardt Date: Tue, 16 Mar 2010 22:22:18 +0000 (+0100) Subject: xt_condition: remove some blank lines X-Git-Tag: v1.24~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0acbe528ac00e30dd0727fe99fb4a7d7cd12cdde;p=thirdparty%2Fxtables-addons.git xt_condition: remove some blank lines --- diff --git a/extensions/xt_condition.c b/extensions/xt_condition.c index 62cd92c..d6a0c79 100644 --- a/extensions/xt_condition.c +++ b/extensions/xt_condition.c @@ -70,7 +70,6 @@ static int condition_proc_read(char __user *buffer, char **start, off_t offset, buffer[1] = '\n'; if (length >= 2) *eof = true; - return 2; } @@ -93,7 +92,6 @@ static int condition_proc_write(struct file *file, const char __user *buffer, break; } } - return length; } @@ -125,7 +123,6 @@ static bool condition_mt_check(const struct xt_mtchk_param *par) info->name); return false; } - /* * Let's acquire the lock, check for the condition and add it * or increase the reference counter. @@ -144,7 +141,6 @@ static bool condition_mt_check(const struct xt_mtchk_param *par) /* At this point, we need to allocate a new condition variable. */ var = kmalloc(sizeof(struct condition_variable), GFP_KERNEL); - if (var == NULL) { mutex_unlock(&proc_lock); return false; @@ -153,7 +149,6 @@ static bool condition_mt_check(const struct xt_mtchk_param *par) /* Create the condition variable's proc file entry. */ var->status_proc = create_proc_entry(info->name, condition_list_perms, proc_net_condition); - if (var->status_proc == NULL) { kfree(var); mutex_unlock(&proc_lock); @@ -169,14 +164,10 @@ static bool condition_mt_check(const struct xt_mtchk_param *par) wmb(); var->status_proc->read_proc = condition_proc_read; var->status_proc->write_proc = condition_proc_write; - list_add_rcu(&var->list, &conditions_list); - var->status_proc->uid = condition_uid_perms; var->status_proc->gid = condition_gid_perms; - mutex_unlock(&proc_lock); - info->condvar = var; return true; }