[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-56
From: |
Daniele Forsi |
Subject: |
[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-561-g47348f0 |
Date: |
Sat, 11 Jan 2014 18:03:38 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libgnokii and core programs".
The branch, master has been updated
via 47348f07a597b7e981cd6cbb759f5ef47186043a (commit)
from a5d9eb486950d2239e06ed7135f6adb5b79e77a5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=47348f07a597b7e981cd6cbb759f5ef47186043a
commit 47348f07a597b7e981cd6cbb759f5ef47186043a
Author: Daniele Forsi <address@hidden>
Date: Sat Jan 11 19:00:58 2014 +0100
Make register_driver() even simpler
Suggested by Pawel Kot.
diff --git a/common/gsm-api.c b/common/gsm-api.c
index b93a660..357190a 100644
--- a/common/gsm-api.c
+++ b/common/gsm-api.c
@@ -75,7 +75,7 @@ BOOL APIENTRY DllMain(HANDLE hModule,
user must have write permission to the device. */
static gn_error register_driver(gn_driver *driver, const char *model, char
*setupmodel, struct gn_statemachine *sm)
{
- gn_data *data;
+ gn_data *data = NULL;
gn_error error;
if (strstr(driver->phone.models, model) == NULL)
@@ -86,8 +86,6 @@ static gn_error register_driver(gn_driver *driver, const char
*model, char *setu
if (!data)
return GN_ERR_INTERNALERROR;
data->model = setupmodel;
- } else {
- data = NULL;
}
error = driver->functions(GN_OP_Init, data, sm);
-----------------------------------------------------------------------
Summary of changes:
common/gsm-api.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
hooks/post-receive
--
libgnokii and core programs
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-561-g47348f0,
Daniele Forsi <=