]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
TTY: synclink, remove unneeded tests
authorJiri Slaby <jslaby@suse.cz>
Thu, 3 Jan 2013 14:53:09 +0000 (15:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jan 2013 06:43:15 +0000 (22:43 -0800)
info in synclink bottom-halves cannot be NULL because it is taken from
work_struct using container_of. Remove the tests.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/pcmcia/synclink_cs.c
drivers/tty/synclink_gt.c
drivers/tty/synclinkmp.c

index f334aec65fc76bedfd997d1fec6976a6ddb8ed48..34e52ed0ea8c7c62ae57e7952dbc735814a5d4b4 100644 (file)
@@ -765,9 +765,6 @@ static void bh_handler(struct work_struct *work)
        struct tty_struct *tty;
        int action;
 
-       if (!info)
-               return;
-
        if (debug_level >= DEBUG_LEVEL_BH)
                printk( "%s(%d):bh_handler(%s) entry\n",
                        __FILE__,__LINE__,info->device_name);
index fced6acc74ee31c75e44ba2243d377cf19c01db6..ac8599a768201a292ab083825e6cfbdb79c007f7 100644 (file)
@@ -1957,8 +1957,6 @@ static void bh_handler(struct work_struct *work)
        struct slgt_info *info = container_of(work, struct slgt_info, task);
        int action;
 
-       if (!info)
-               return;
        info->bh_running = true;
 
        while((action = bh_action(info))) {
index e4a2904af5651719c9fd3df2f00fe266ddd0dba7..545402509cabdc281f3a21fc6184aacb01d21bb6 100644 (file)
@@ -2007,9 +2007,6 @@ static void bh_handler(struct work_struct *work)
        SLMP_INFO *info = container_of(work, SLMP_INFO, task);
        int action;
 
-       if (!info)
-               return;
-
        if ( debug_level >= DEBUG_LEVEL_BH )
                printk( "%s(%d):%s bh_handler() entry\n",
                        __FILE__,__LINE__,info->device_name);