diff --git a/mysys/hash.c b/mysys/hash.c
index 9632f9773fda8323fe138603e6ede3e073f7e1a9..fe27b5fcb6d43b5c25a14037bf9992e0f24fe8f8 100644
--- a/mysys/hash.c
+++ b/mysys/hash.c
@@ -175,7 +175,7 @@ static uint hash_rec_mask(HASH *hash,HASH_LINK *pos,uint buffmax,
 
 /* for compilers which can not handle inline */
 static
-#if !defined(__SUNPRO_C) && !defined(__USLC__) && !defined(__sgi)
+#if !defined(__USLC__) && !defined(__sgi)
 inline
 #endif
 unsigned int rec_hashnr(HASH *hash,const byte *record)
diff --git a/sql/net_serv.cc b/sql/net_serv.cc
index 2de5853599fa1cd419d542982022c0ab82b0efd7..4fbbeedb81243506bd0cbd9cae021b00cd7344dd 100644
--- a/sql/net_serv.cc
+++ b/sql/net_serv.cc
@@ -254,7 +254,7 @@ my_bool
 my_net_write(NET *net,const char *packet,ulong len)
 {
   uchar buff[NET_HEADER_SIZE];
-  if (unlikely(!net->vio))                      /* nowhere to write */
+  if (unlikely(!net->vio)) /* nowhere to write */
     return 0;
   /*
     Big packets are handled by splitting them in packets of MAX_PACKET_LENGTH