isdn:gigaset:Remove unneeded TODO comment for the function,gigaset_procinfo in capi.c
Subsystems (2)
Tilman Schmidt
Acked-byAm 17.01.2015 um 19:23 schrieb Nicholas Krause:
Quoted 11 lines
This removes the no longer needed TODO comment for questioning if the function,gigaset_procinfo needs to do more work internally. This comment is no longer needed due to the function's intended use to be returning the name of the structure pointer passed to this function of type,capi_ctr. In addition due to this the function's comments related to it's intended job are changed to state it returns rather then builds the description for the structure and also that the function doesn't build the name string but returns the already generated one passed to
gigaset_procinfoby the structure passed to this function.
Quoted 1 line
Signed-off-by Nicholas Krause <[email protected]>
Acked-by Tilman Schmidt <[email protected]>
Thanks,
Tilman
Quoted 27 lines
--- drivers/isdn/gigaset/capi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/isdn/gigaset/capi.c +3
-3@@ -2336,14 +2336,14 @@ static u16 gigaset_send_message(struct capi_ctr *ctr, struct sk_buff *skb) }/** -* gigaset_procinfo() - build single line description for controller +* gigaset_procinfo() - return single line description for controller * @ctr: controller descriptor structure. * -* Return value: pointer to generated string (null terminated) +* Return value: pointer to already generated string (null terminated) */ static char *gigaset_procinfo (struct capi_ctr *ctr) { -return ctr->name;/* ToDo: more? */ +return ctr->name; }static int gigaset_proc_show (struct seq_file *m,void *v)
Signature · 4 lines
Tilman Schmidt E-Mail: [email protected] Bonn, Germany Diese Nachricht besteht zu 100% aus wiederverwerteten Bits. Ungeöffnet mindestens haltbar bis: (siehe Rückseite)