{
        struct aiptek *aiptek = dev_get_drvdata(dev);
 
-       if (aiptek == NULL)
-               return 0;
-
        return snprintf(buf, PAGE_SIZE, "%dx%d\n",
                        aiptek->inputdev->absmax[ABS_X] + 1,
                        aiptek->inputdev->absmax[ABS_Y] + 1);
        struct aiptek *aiptek = dev_get_drvdata(dev);
        char *s;
 
-       if (aiptek == NULL)
-               return 0;
-
        switch (aiptek->curSetting.pointerMode) {
        case AIPTEK_POINTER_ONLY_STYLUS_MODE:
                s = "stylus";
 store_tabletPointerMode(struct device *dev, struct device_attribute *attr, const char *buf, size_t count)
 {
        struct aiptek *aiptek = dev_get_drvdata(dev);
-       if (aiptek == NULL)
-               return 0;
 
        if (strcmp(buf, "stylus") == 0) {
                aiptek->newSetting.pointerMode =
        struct aiptek *aiptek = dev_get_drvdata(dev);
        char *s;
 
-       if (aiptek == NULL)
-               return 0;
-
        switch (aiptek->curSetting.coordinateMode) {
        case AIPTEK_COORDINATE_ABSOLUTE_MODE:
                s = "absolute";
 store_tabletCoordinateMode(struct device *dev, struct device_attribute *attr, const char *buf, size_t count)
 {
        struct aiptek *aiptek = dev_get_drvdata(dev);
-       if (aiptek == NULL)
-               return 0;
 
        if (strcmp(buf, "absolute") == 0) {
                aiptek->newSetting.pointerMode =
        struct aiptek *aiptek = dev_get_drvdata(dev);
        char *s;
 
-       if (aiptek == NULL)
-               return 0;
-
        switch (TOOL_BUTTON(aiptek->curSetting.toolMode)) {
        case AIPTEK_TOOL_BUTTON_MOUSE_MODE:
                s = "mouse";
 store_tabletToolMode(struct device *dev, struct device_attribute *attr, const char *buf, size_t count)
 {
        struct aiptek *aiptek = dev_get_drvdata(dev);
-       if (aiptek == NULL)
-               return 0;
 
        if (strcmp(buf, "mouse") == 0) {
                aiptek->newSetting.toolMode = AIPTEK_TOOL_BUTTON_MOUSE_MODE;
 {
        struct aiptek *aiptek = dev_get_drvdata(dev);
 
-       if (aiptek == NULL)
-               return 0;
-
        if (aiptek->curSetting.xTilt == AIPTEK_TILT_DISABLE) {
                return snprintf(buf, PAGE_SIZE, "disable\n");
        } else {
        struct aiptek *aiptek = dev_get_drvdata(dev);
        int x;
 
-       if (aiptek == NULL)
-               return 0;
-
        if (strcmp(buf, "disable") == 0) {
                aiptek->newSetting.xTilt = AIPTEK_TILT_DISABLE;
        } else {
 {
        struct aiptek *aiptek = dev_get_drvdata(dev);
 
-       if (aiptek == NULL)
-               return 0;
-
        if (aiptek->curSetting.yTilt == AIPTEK_TILT_DISABLE) {
                return snprintf(buf, PAGE_SIZE, "disable\n");
        } else {
        struct aiptek *aiptek = dev_get_drvdata(dev);
        int y;
 
-       if (aiptek == NULL)
-               return 0;
-
        if (strcmp(buf, "disable") == 0) {
                aiptek->newSetting.yTilt = AIPTEK_TILT_DISABLE;
        } else {
 {
        struct aiptek *aiptek = dev_get_drvdata(dev);
 
-       if (aiptek == NULL)
-               return 0;
-
        return snprintf(buf, PAGE_SIZE, "%d\n", aiptek->curSetting.jitterDelay);
 }
 
 {
        struct aiptek *aiptek = dev_get_drvdata(dev);
 
-       if (aiptek == NULL)
-               return 0;
-
        aiptek->newSetting.jitterDelay = (int)simple_strtol(buf, NULL, 10);
        return count;
 }
 {
        struct aiptek *aiptek = dev_get_drvdata(dev);
 
-       if (aiptek == NULL)
-               return 0;
-
        return snprintf(buf, PAGE_SIZE, "%d\n",
                        aiptek->curSetting.programmableDelay);
 }
 {
        struct aiptek *aiptek = dev_get_drvdata(dev);
 
-       if (aiptek == NULL)
-               return 0;
-
        aiptek->newSetting.programmableDelay = (int)simple_strtol(buf, NULL, 10);
        return count;
 }
 {
        struct aiptek *aiptek = dev_get_drvdata(dev);
 
-       if (aiptek == NULL)
-               return 0;
-
        return snprintf(buf, PAGE_SIZE, "%ld\n", aiptek->eventCount);
 }
 
        struct aiptek *aiptek = dev_get_drvdata(dev);
        char *retMsg;
 
-       if (aiptek == NULL)
-               return 0;
-
        switch (aiptek->diagnostic) {
        case AIPTEK_DIAGNOSTIC_NA:
                retMsg = "no errors\n";
        struct aiptek *aiptek = dev_get_drvdata(dev);
        char *s;
 
-       if (aiptek == NULL)
-               return 0;
-
        switch (aiptek->curSetting.stylusButtonUpper) {
        case AIPTEK_STYLUS_UPPER_BUTTON:
                s = "upper";
 {
        struct aiptek *aiptek = dev_get_drvdata(dev);
 
-       if (aiptek == NULL)
-               return 0;
-
        if (strcmp(buf, "upper") == 0) {
                aiptek->newSetting.stylusButtonUpper =
                    AIPTEK_STYLUS_UPPER_BUTTON;
        struct aiptek *aiptek = dev_get_drvdata(dev);
        char *s;
 
-       if (aiptek == NULL)
-               return 0;
-
        switch (aiptek->curSetting.stylusButtonLower) {
        case AIPTEK_STYLUS_UPPER_BUTTON:
                s = "upper";
 {
        struct aiptek *aiptek = dev_get_drvdata(dev);
 
-       if (aiptek == NULL)
-               return 0;
-
        if (strcmp(buf, "upper") == 0) {
                aiptek->newSetting.stylusButtonLower =
                    AIPTEK_STYLUS_UPPER_BUTTON;
        struct aiptek *aiptek = dev_get_drvdata(dev);
        char *s;
 
-       if (aiptek == NULL)
-               return 0;
-
        switch (aiptek->curSetting.mouseButtonLeft) {
        case AIPTEK_MOUSE_LEFT_BUTTON:
                s = "left";
 {
        struct aiptek *aiptek = dev_get_drvdata(dev);
 
-       if (aiptek == NULL)
-               return 0;
-
        if (strcmp(buf, "left") == 0) {
                aiptek->newSetting.mouseButtonLeft = AIPTEK_MOUSE_LEFT_BUTTON;
        } else if (strcmp(buf, "middle") == 0) {
        struct aiptek *aiptek = dev_get_drvdata(dev);
        char *s;
 
-       if (aiptek == NULL)
-               return 0;
-
        switch (aiptek->curSetting.mouseButtonMiddle) {
        case AIPTEK_MOUSE_LEFT_BUTTON:
                s = "left";
 {
        struct aiptek *aiptek = dev_get_drvdata(dev);
 
-       if (aiptek == NULL)
-               return 0;
-
        if (strcmp(buf, "left") == 0) {
                aiptek->newSetting.mouseButtonMiddle = AIPTEK_MOUSE_LEFT_BUTTON;
        } else if (strcmp(buf, "middle") == 0) {
        struct aiptek *aiptek = dev_get_drvdata(dev);
        char *s;
 
-       if (aiptek == NULL)
-               return 0;
-
        switch (aiptek->curSetting.mouseButtonRight) {
        case AIPTEK_MOUSE_LEFT_BUTTON:
                s = "left";
 {
        struct aiptek *aiptek = dev_get_drvdata(dev);
 
-       if (aiptek == NULL)
-               return 0;
-
        if (strcmp(buf, "left") == 0) {
                aiptek->newSetting.mouseButtonRight = AIPTEK_MOUSE_LEFT_BUTTON;
        } else if (strcmp(buf, "middle") == 0) {
 {
        struct aiptek *aiptek = dev_get_drvdata(dev);
 
-       if (aiptek == NULL)
-               return 0;
-
        if (aiptek->curSetting.wheel == AIPTEK_WHEEL_DISABLE) {
                return snprintf(buf, PAGE_SIZE, "disable\n");
        } else {
 {
        struct aiptek *aiptek = dev_get_drvdata(dev);
 
-       if (aiptek == NULL)
-               return 0;
-
        aiptek->newSetting.wheel = (int)simple_strtol(buf, NULL, 10);
        return count;
 }
  */
 static ssize_t show_tabletExecute(struct device *dev, struct device_attribute *attr, char *buf)
 {
-       struct aiptek *aiptek = dev_get_drvdata(dev);
-
-       if (aiptek == NULL)
-               return 0;
-
        /* There is nothing useful to display, so a one-line manual
         * is in order...
         */
 {
        struct aiptek *aiptek = dev_get_drvdata(dev);
 
-       if (aiptek == NULL)
-               return 0;
-
        /* We do not care what you write to this file. Merely the action
         * of writing to this file triggers a tablet reprogramming.
         */
 {
        struct aiptek *aiptek = dev_get_drvdata(dev);
 
-       if (aiptek == NULL)
-               return 0;
-
        return snprintf(buf, PAGE_SIZE, "0x%04x\n", aiptek->features.odmCode);
 }
 
 {
        struct aiptek *aiptek = dev_get_drvdata(dev);
 
-       if (aiptek == NULL)
-               return 0;
-
        return snprintf(buf, PAGE_SIZE, "0x%04x\n", aiptek->features.modelCode);
 }
 
 {
        struct aiptek *aiptek = dev_get_drvdata(dev);
 
-       if (aiptek == NULL)
-               return 0;
-
        return snprintf(buf, PAGE_SIZE, "%04x\n",
                        aiptek->features.firmwareCode);
 }