[PATCH 1/3] New function to avoid duplicate code in upcomming commits

From: Werner Sembach
Date: Wed May 05 2021 - 13:31:51 EST


Moves some checks that later will be performed 2 times to an own fuction. This
avoids duplicate code later on.

Signed-off-by: Werner Sembach <wse@xxxxxxxxxxxxxxxxxxx>
---