small code shrink
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Sat, 29 Sep 2007 23:26:52 +0000 (23:26 +0000)
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Sat, 29 Sep 2007 23:26:52 +0000 (23:26 +0000)
git-svn-id: svn://busybox.net/trunk/busybox@20134 69ca8d6d-28ef-0310-b511-8ec308f3f277

miscutils/microcom.c

index 5928569..e097dc4 100644 (file)
@@ -56,12 +56,11 @@ int microcom_main(int argc, char **argv)
        }
 
        // open device
-       sfd = open(argv[0], O_RDWR | O_NDELAY);
+       sfd = open(argv[0], O_RDWR);
        if (sfd < 0) {
                bb_perror_msg("can't open device");
                goto unlock_and_exit;
        }
-       fcntl(sfd, F_SETFL, O_RDWR); // why?
 
        // put stdin to "raw mode", handle one character at a time
        tcgetattr(STDIN_FILENO, &tio0);