Linux KVS Get impl should return buffer too small if the buffer is too small (#19914)
Linux KVS Get impl should return buffer too small if the buffer is too small (#19914)

* Linux KVS Get impl should return buffer too small if the buffer it too small

* use helper variable

* Restyle
project-chip/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhomeip,nestlabs/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhomeip,nestlabs/connectedhomeip,nestlabs/connectedhomeip