chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] remove unused variables
[elogind.git]
/
udev_utils.c
diff --git
a/udev_utils.c
b/udev_utils.c
index bdf0233e3ae1c5828f6cedc4acfea3463a227a58..aa5c75f74d02a29c466a0185a8bbb9126cd1ed42 100644
(file)
--- a/
udev_utils.c
+++ b/
udev_utils.c
@@
-36,8
+36,7
@@
#include "list.h"
#include "list.h"
-void udev_set_values(struct udevice *udev, const char* devpath,
- const char *subsystem, const char* action)
+void udev_init_device(struct udevice *udev, const char* devpath, const char *subsystem)
{
memset(udev, 0x00, sizeof(struct udevice));
{
memset(udev, 0x00, sizeof(struct udevice));
@@
-45,8
+44,6
@@
void udev_set_values(struct udevice *udev, const char* devpath,
strfieldcpy(udev->devpath, devpath);
if (subsystem)
strfieldcpy(udev->subsystem, subsystem);
strfieldcpy(udev->devpath, devpath);
if (subsystem)
strfieldcpy(udev->subsystem, subsystem);
- if (action)
- strfieldcpy(udev->action, action);
if (strcmp(udev->subsystem, "block") == 0)
udev->type = 'b';
if (strcmp(udev->subsystem, "block") == 0)
udev->type = 'b';