fix bug for sas device info print is 0, because the O2 compilation optimization
is enabled. we use the volatile modifier added for pointer.
Signed-off-by: veega2022 <zhuweijia@huawei.com>
(cherry picked from commit 8196ce5ddeaaa0f08b6706bdff9ac1761b09a53d)