commit | 8fc4c99496706c72f66e3acdbd8211aaf09fd68f | [log] [tgz] |
---|---|---|
author | Johan Hedberg <johan.hedberg@intel.com> | Tue Jan 30 15:26:29 2018 -0800 |
committer | Johan Hedberg <johan.hedberg@gmail.com> | Wed Jan 31 07:01:10 2018 -0800 |
tree | eec4b70664c3fdf8e436b50d98b7d9f64fc4dc6d | |
parent | 7ae78c9928be7c7b1ff672a2f3a2c56bd160d035 [diff] |
Bluetooth: Remove redundant AD parsing check A few lines earlier the code bails out in case len is 0. Checking for buf->len < 1 is the same as checking for buf->len == 0. Since len is guaranteed to be > 0 here the check len > buf->len implicitly checks for buf->len == 0, i.e. the second test can be removed. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>