mirror of
https://github.com/X11Libre/xf86-input-mouse.git
synced 2026-04-14 10:54:18 +00:00
sun_mouse.c: Remove redundant option checks
Previously they checked pInfo->options, then fell back to
pInfo->conf_idev->commonOptions - but then 7bf22a368c
replaced the latter with the former, resulting in some redunancy.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Alexandr Shadchin <alexandr.shadchin@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -611,16 +611,10 @@ solarisMouseAutoProbe(InputInfoPtr pInfo, const char **protocol,
|
||||
if (*device == NULL) {
|
||||
/* Check to see if xorg.conf or HAL specified a device to use */
|
||||
*device = xf86CheckStrOption(pInfo->options, "Device", NULL);
|
||||
if (*device == NULL) {
|
||||
*device = xf86CheckStrOption(pInfo->options, "Device", NULL);
|
||||
}
|
||||
}
|
||||
|
||||
if (*device != NULL) {
|
||||
strmod = xf86CheckStrOption(pInfo->options, "StreamsModule", NULL);
|
||||
if (strmod == NULL) {
|
||||
strmod = xf86CheckStrOption(pInfo->options, "StreamsModule", NULL);
|
||||
}
|
||||
if (strmod) {
|
||||
/* if a device name is already known, and a StreamsModule is
|
||||
specified to convert events to VUID, then we don't need to
|
||||
|
||||
Reference in New Issue
Block a user