PR: 1763
authorDr. Stephen Henson <steve@openssl.org>
Sat, 27 Mar 2010 23:28:33 +0000 (23:28 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sat, 27 Mar 2010 23:28:33 +0000 (23:28 +0000)
Remove useless num = 0 assignment.

Remove redundant cases on sock_ctrl(): default case handles them.

crypto/bio/bss_sock.c

index 30c3ceab468cf1ca50a9bb65e8f51dbda014d727..3df31938c185510fdf008d245388b7589b70ef13 100644 (file)
@@ -172,15 +172,6 @@ static long sock_ctrl(BIO *b, int cmd, long num, void *ptr)
 
        switch (cmd)
                {
-       case BIO_CTRL_RESET:
-               num=0;
-       case BIO_C_FILE_SEEK:
-               ret=0;
-               break;
-       case BIO_C_FILE_TELL:
-       case BIO_CTRL_INFO:
-               ret=0;
-               break;
        case BIO_C_SET_FD:
                sock_free(b);
                b->num= *((int *)ptr);
@@ -203,10 +194,6 @@ static long sock_ctrl(BIO *b, int cmd, long num, void *ptr)
        case BIO_CTRL_SET_CLOSE:
                b->shutdown=(int)num;
                break;
-       case BIO_CTRL_PENDING:
-       case BIO_CTRL_WPENDING:
-               ret=0;
-               break;
        case BIO_CTRL_DUP:
        case BIO_CTRL_FLUSH:
                ret=1;