[vlc-commits] mtp: remove write-only datum

Rémi Denis-Courmont git at videolan.org
Sun Jul 21 15:17:39 CEST 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jul 21 15:55:17 2013 +0300| [f9053346c9a7a7fb64ee797a361fddede8e993e9] | committer: Rémi Denis-Courmont

mtp: remove write-only datum

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f9053346c9a7a7fb64ee797a361fddede8e993e9
---

 modules/access/mtp.c |    4 ----
 1 file changed, 4 deletions(-)

diff --git a/modules/access/mtp.c b/modules/access/mtp.c
index baf90c5..89cd373 100644
--- a/modules/access/mtp.c
+++ b/modules/access/mtp.c
@@ -75,7 +75,6 @@ static int  open_file( access_t *, const char * );
 
 struct access_sys_t
 {
-    unsigned int i_nb_reads;
     int fd;
 };
 
@@ -141,7 +140,6 @@ static int Open( vlc_object_t *p_this )
     free( p_rawdevices );
 
     STANDARD_READ_ACCESS_INIT;
-    p_sys->i_nb_reads = 0;
     int fd = p_sys->fd = -1;
 
     /* Open file */
@@ -210,8 +208,6 @@ static ssize_t Read( access_t *p_access, uint8_t *p_buffer, size_t i_len )
     else
         p_access->info.b_eof = true;
 
-    p_sys->i_nb_reads++;
-
     return i_ret;
 }
 



More information about the vlc-commits mailing list