readclock/tda19988: fix compiler/cppcheck warnings

readclock:
 - the setup function for readclock on i386 was missing a return.
 - the message field for RTCDEV_GRANT wasn't the right type.

tda19988:
 - position variable was used without being initialized.

Change-Id: I3f78dd0a9d44f35eb38cb7da0974909f066b7007
This commit is contained in:
Thomas Cort
2013-08-10 18:30:42 +00:00
parent 039c8db774
commit 6405d78182
3 changed files with 4 additions and 3 deletions

View File

@@ -1333,7 +1333,7 @@
#define RTCDEV_TM m2_p1 /* pointer to struct tm */
#define RTCDEV_FLAGS m2_s1 /* clock flags flags */
#define RTCDEV_STATUS m2_i2 /* OK or error code */
#define RTCDEV_GRANT m2_p1 /* grant containing struct tm */
#define RTCDEV_GRANT m2_i3 /* grant containing struct tm */
/* Bits in 'RTCDEV_FLAGS' field of real time clock requests. */
#define RTCDEV_NOFLAGS 0x00 /* no flags are set */