OSDN Git Service

tty: msm_smd_tty: Remove useless NULL checks
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / drivers / tty / serial / msm_smd_tty.c
index ea3f221..570a5d3 100644 (file)
@@ -368,9 +368,6 @@ static int smd_tty_dummy_probe(struct platform_device *pdev)
        int n;
 
        for (n = 0; n < MAX_SMD_TTYS; ++n) {
-               if (!smd_tty[n].dev_name)
-                       continue;
-
                if (pdev->id == smd_tty[n].edge &&
                        !strcmp(pdev->name, smd_tty[n].dev_name)) {
                        complete_all(&smd_tty[n].ch_allocated);
@@ -502,7 +499,7 @@ static int smd_tty_port_activate(struct tty_port *tport,
        struct smd_tty_info *info;
        const char *peripheral = NULL;
 
-       if (n >= MAX_SMD_TTYS || !smd_tty[n].ch_name)
+       if (n >= MAX_SMD_TTYS)
                return -ENODEV;
 
        info = smd_tty + n;