sr: cosmetic changes

This commit is contained in:
Bert Vermeulen 2012-07-23 15:09:19 +02:00
parent c1864d5589
commit a2e464604c
1 changed files with 2 additions and 22 deletions

View File

@ -47,15 +47,6 @@ static const int hwcaps[] = {
0, 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) static int receive_data(int fd, int revents, void *cb_data)
{ {
struct sr_dev_inst *sdi; struct sr_dev_inst *sdi;
@ -81,9 +72,8 @@ static int receive_data(int fd, int revents, void *cb_data)
continue; continue;
if (!(buf = g_try_malloc(CHUNKSIZE))) { if (!(buf = g_try_malloc(CHUNKSIZE))) {
sr_err("session driver: %s: buf malloc failed", sr_err("session driver: %s: buf malloc failed", __func__);
__func__); return FALSE;
return FALSE; /* TODO: SR_ERR_MALLOC */
} }
ret = zip_fread(vdev->capfile, buf, CHUNKSIZE); ret = zip_fread(vdev->capfile, buf, CHUNKSIZE);
@ -116,22 +106,12 @@ static int receive_data(int fd, int revents, void *cb_data)
/* driver callbacks */ /* driver callbacks */
static int hw_cleanup(void); static int hw_cleanup(void);
/**
* TODO.
*
* @param devinfo TODO.
*
* @return TODO.
*/
static int hw_init(void) static int hw_init(void)
{ {
return SR_OK; return SR_OK;
} }
/**
* TODO.
*/
static int hw_cleanup(void) static int hw_cleanup(void)
{ {
GSList *l; GSList *l;