diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2020-05-11 21:19:20 +0200 |
---|---|---|
committer | Philipp Maier <pmaier@sysmocom.de> | 2020-05-12 11:38:02 +0200 |
commit | b689754b4967eed6185352c36c3c17cac6702969 (patch) | |
tree | c23731d417242a2679bcbce3c53fc931e29435c0 | |
parent | fc83e43637ec37946c2834404b1b8bb4723cd50d (diff) |
cards: remove len calculation
The method update_ad() caluclates the size of the data it had just
read from EF.AD, but the result is never used, lets remove that
line
Change-Id: Id38c0dc725ab6874de3ea60132482a09372abe9e
-rw-r--r-- | pySim/cards.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/pySim/cards.py b/pySim/cards.py index 8937ee8..f469cae 100644 --- a/pySim/cards.py +++ b/pySim/cards.py @@ -149,7 +149,6 @@ class Card(object): raise RuntimeError('unable to calculate proper mnclen') data = self._scc.read_binary(EF['AD'], length=None, offset=0) - size = len(data[0]) // 2 content = data[0][0:6] + "%02X" % mnclen data, sw = self._scc.update_binary(EF['AD'], content) return sw |