[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnokii] 03/04: Remove redundant checks for minimum SMS location
From: |
Daniele Forsi |
Subject: |
[gnokii] 03/04: Remove redundant checks for minimum SMS location |
Date: |
Mon, 11 May 2015 17:27:21 +0000 |
dforsi pushed a commit to branch master
in repository gnokii.
commit 8864afec128b6e9b34306828f2bcde15c1523f1c
Author: Daniele Forsi <address@hidden>
Date: Mon May 11 19:12:45 2015 +0200
Remove redundant checks for minimum SMS location
The same check is done in ValidateSMS() now.
---
common/phones/nk6510.c | 13 -------------
1 files changed, 0 insertions(+), 13 deletions(-)
diff --git a/common/phones/nk6510.c b/common/phones/nk6510.c
index 20e77d5..584896b 100644
--- a/common/phones/nk6510.c
+++ b/common/phones/nk6510.c
@@ -1550,9 +1550,6 @@ static gn_error NK6510_DeleteSMS(gn_data *data, struct
gn_statemachine *state)
return error;
}
- if (data->raw_sms->number < 1)
- return GN_ERR_EMPTYLOCATION;
-
data->raw_sms->number =
data->sms_folder->locations[data->raw_sms->number - 1];
if ((data->raw_sms->memory_type == GN_MT_IN) ||
(data->raw_sms->memory_type == GN_MT_OU)) {
@@ -1660,11 +1657,6 @@ static gn_error NK6510_GetSMS_S40_30(gn_data *data,
struct gn_statemachine *stat
if (!data->raw_sms)
return GN_ERR_INTERNALERROR;
- if (data->raw_sms->number < 1) {
- dprintf("Getting SMS %d\n", data->raw_sms->number);
- return GN_ERR_INVALIDLOCATION;
- }
-
dprintf("Using GetSMS for Series40 3rd Ed\n");
/* Find path */
@@ -1747,11 +1739,6 @@ static gn_error NK6510_DeleteSMS_S40_30(gn_data *data,
struct gn_statemachine *s
if (!data->raw_sms)
return GN_ERR_INTERNALERROR;
- if (data->raw_sms->number < 1) {
- dprintf("Deleting SMS %d\n", data->raw_sms->number);
- return GN_ERR_INVALIDLOCATION;
- }
-
dprintf("Using DeleteSMS for Series40 3rd Ed\n");
/* Find path */