On Wed, 2016-06-15 at 10:31 +0100, Wei Liu wrote: > Factor out the logic to determine device model version to a function. > It > will be used later. Note that code now also checks if the stbudom > field > is actually set before trying to extract a value from it. > > No functional change. > > Signed-off-by: Wei Liu > --- > Cc: Ian Jackson > Cc: Anthony PERARD > Reviewed-by: Dario Faggioli Regards, Dario -- <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)