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

From: Werner Sembach
Date: Wed May 05 2021 - 10:11:04 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>
---
PS.: I have no idea why git send-email is messing up this timestamp in "From" below.