summaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorEric Farman <farman@linux.ibm.com>2019-06-06 22:28:28 +0200
committerCornelia Huck <cohuck@redhat.com>2019-06-17 13:30:25 +0200
commit8aabf0edae4a6cc82042785079075aebf7cd5c79 (patch)
tree88bf05ae764f131bb329a0a6e2b3a5bd0ba3d7f5 /scripts/const_structs.checkpatch
parentcc06ee983cffc28fbd9c31908137f7b3c097f5a7 (diff)
vfio-ccw: Adjust the first IDAW outside of the nested loops
Now that pfn_array_table[] is always an array of 1, it seems silly to check for the very first entry in an array in the middle of two nested loops, since we know it'll only ever happen once. Let's move this outside the loops to simplify things, even though the "k" variable is still necessary. Signed-off-by: Eric Farman <farman@linux.ibm.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Message-Id: <20190606202831.44135-7-farman@linux.ibm.com> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions