]> sigrok.org Git - libsigrok.git/commitdiff
session*.c: Remove some unneeded lines.
authorUwe Hermann <redacted>
Tue, 22 Jul 2014 21:25:24 +0000 (23:25 +0200)
committerUwe Hermann <redacted>
Tue, 22 Jul 2014 21:25:24 +0000 (23:25 +0200)
src/session.c
src/session_file.c

index d8a3b00b5efabe157ab546498bee39139b249853..dfb55cbc405151ee8a260e206dc86173a60dd09b 100644 (file)
@@ -725,8 +725,6 @@ SR_API int sr_session_source_add(struct sr_session *session, int fd,
 {
        GPollFD p;
 
-       (void) session;
-
        p.fd = fd;
        p.events = events;
 
@@ -751,8 +749,6 @@ SR_API int sr_session_source_add_pollfd(struct sr_session *session,
                GPollFD *pollfd, int timeout, sr_receive_data_callback cb,
                void *cb_data)
 {
-       (void) session;
-
        return _sr_session_source_add(session, pollfd, timeout, cb,
                                      cb_data, (gintptr)pollfd);
 }
@@ -778,8 +774,6 @@ SR_API int sr_session_source_add_channel(struct sr_session *session,
 {
        GPollFD p;
 
-       (void) session;
-
 #ifdef _WIN32
        g_io_channel_win32_make_pollfd(channel, events, &p);
 #else
@@ -863,8 +857,6 @@ static int _sr_session_source_remove(struct sr_session *session, gintptr poll_ob
  */
 SR_API int sr_session_source_remove(struct sr_session *session, int fd)
 {
-       (void) session;
-
        return _sr_session_source_remove(session, (gintptr)fd);
 }
 
@@ -882,8 +874,6 @@ SR_API int sr_session_source_remove(struct sr_session *session, int fd)
 SR_API int sr_session_source_remove_pollfd(struct sr_session *session,
                GPollFD *pollfd)
 {
-       (void) session;
-
        return _sr_session_source_remove(session, (gintptr)pollfd);
 }
 
@@ -902,8 +892,6 @@ SR_API int sr_session_source_remove_pollfd(struct sr_session *session,
 SR_API int sr_session_source_remove_channel(struct sr_session *session,
                GIOChannel *channel)
 {
-       (void) session;
-
        return _sr_session_source_remove(session, (gintptr)channel);
 }
 
index 1c1cee5d68c9c9defe1521ef02a2b9a3f5d9260c..58282ea6a025d5c0669d9e049478cfc6cb3dc94a 100644 (file)
@@ -300,7 +300,7 @@ SR_API int sr_session_save_init(struct sr_session *session,
        int tmpfile, cnt, ret, i;
        char version[1], metafile[32], *s;
 
-       (void) session;
+       (void)session;
 
        if (!filename) {
                sr_err("%s: filename was NULL", __func__);
@@ -402,7 +402,7 @@ SR_API int sr_session_append(struct sr_session *session, const char *filename,
        const char *entry_name;
        char *metafile, tmpname[32], chunkname[16];
 
-       (void) session;
+       (void)session;
 
        if ((ret = sr_sessionfile_check(filename)) != SR_OK)
                return ret;