lib/uuid.c: use correct offset in uuid parser
commitbc9dc9d5eec908806f1b15c9ec2253d44dcf7835
authorBjørn Mork <bjorn@mork.no>
Mon, 30 May 2016 14:40:42 +0000 (30 17:40 +0300)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 30 May 2016 22:26:57 +0000 (30 15:26 -0700)
tree4ab99d51ed39952bbd7500dca2abd2b7831184a5
parentcfaff0e515b544fa0a9cdc58a975cc629ff3bc17
lib/uuid.c: use correct offset in uuid parser

Use '+ 0' and '+ 1' as offsets, like they were intended, instead of
adding to the result.

Fixes: 2b1b0d66704a ("lib/uuid.c: introduce a few more generic helpers")
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/uuid.c