diff options
author | Michal Wajdeczko <michal.wajdeczko@intel.com> | 2017-12-07 16:52:46 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-12-15 11:26:57 +0000 |
commit | 417b29e2fbc97f99455a9e4bd22270bab0a4628f (patch) | |
tree | 372fa61cf28f8b913abf8a586dd9499f5a870487 /scripts | |
parent | e337f2bf378494083052288c7e65e7191ce9a921 (diff) |
lib/igt_sysfs: Let igt_sysfs_read|write return -errno
In some cases debugfs or sysfs may return errors that we
want to check. Return -errno from helper functions to make
asserts easier.
v2: don't forget about EOF ret=0 (Chris)
small re-write (Michal)
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions