diff mbox

[RFC,v0,2/2] gluster: Remove unused defines and header include

Message ID 1391005796-5916-3-git-send-email-bharata@linux.vnet.ibm.com
State New
Headers show

Commit Message

Bharata B Rao Jan. 29, 2014, 2:29 p.m. UTC
Remove the definitions of GLUSTER_FD_WRITE and GLUSTER_FD_READ which are
no longer used. Also sockets.h isn't needed any more.

Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
---
 block/gluster.c | 4 ----
 1 file changed, 4 deletions(-)

Comments

Stefan Hajnoczi Jan. 30, 2014, 9:31 a.m. UTC | #1
On Wed, Jan 29, 2014 at 07:59:56PM +0530, Bharata B Rao wrote:
> Remove the definitions of GLUSTER_FD_WRITE and GLUSTER_FD_READ which are
> no longer used. Also sockets.h isn't needed any more.
> 
> Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
> ---
>  block/gluster.c | 4 ----
>  1 file changed, 4 deletions(-)

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
diff mbox

Patch

diff --git a/block/gluster.c b/block/gluster.c
index ba56005..1838373 100644
--- a/block/gluster.c
+++ b/block/gluster.c
@@ -9,7 +9,6 @@ 
  */
 #include <glusterfs/api/glfs.h>
 #include "block/block_int.h"
-#include "qemu/sockets.h"
 #include "qemu/uri.h"
 
 typedef struct GlusterAIOCB {
@@ -24,9 +23,6 @@  typedef struct BDRVGlusterState {
     struct glfs_fd *fd;
 } BDRVGlusterState;
 
-#define GLUSTER_FD_READ  0
-#define GLUSTER_FD_WRITE 1
-
 typedef struct GlusterConf {
     char *server;
     int port;