From: Bert Vermeulen Date: Mon, 23 Jul 2012 13:09:19 +0000 (+0200) Subject: sr: cosmetic changes X-Git-Tag: dsupstream~761 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=a2e464604ca19c1a41b8e94625971eb3818c9090;p=libsigrok.git sr: cosmetic changes --- diff --git a/session_driver.c b/session_driver.c index a2aadbb9..9f87c8e0 100644 --- a/session_driver.c +++ b/session_driver.c @@ -47,15 +47,6 @@ static const int hwcaps[] = { 0, }; -/** - * TODO. - * - * @param fd TODO. - * @param revents TODO. - * @param cb_data TODO. - * - * @return TODO. - */ static int receive_data(int fd, int revents, void *cb_data) { struct sr_dev_inst *sdi; @@ -81,9 +72,8 @@ static int receive_data(int fd, int revents, void *cb_data) continue; if (!(buf = g_try_malloc(CHUNKSIZE))) { - sr_err("session driver: %s: buf malloc failed", - __func__); - return FALSE; /* TODO: SR_ERR_MALLOC */ + sr_err("session driver: %s: buf malloc failed", __func__); + return FALSE; } ret = zip_fread(vdev->capfile, buf, CHUNKSIZE); @@ -116,22 +106,12 @@ static int receive_data(int fd, int revents, void *cb_data) /* driver callbacks */ static int hw_cleanup(void); -/** - * TODO. - * - * @param devinfo TODO. - * - * @return TODO. - */ static int hw_init(void) { return SR_OK; } -/** - * TODO. - */ static int hw_cleanup(void) { GSList *l;